-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from translationCoreApps/release-v1.1.0
Release v1.1.0
- Loading branch information
Showing
7 changed files
with
3,447 additions
and
1,917 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
"settings": { | ||
}, | ||
"rules": { | ||
"quotes": "off", | ||
"semi": [ | ||
"error", | ||
"always", | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* eslint-env jest */ | ||
import * as selectionHelpers from '../selectionHelpers'; | ||
|
||
describe('selectionArray()', function() { | ||
it('should succeed with selection', function() { | ||
const string = "To Titus, a true son in our common faith. Grace and peace from God the Father and Christ Jesus our Savior. "; | ||
const selections = [{"text": "God", "occurrence": 1, "occurrences": 1}]; | ||
const expectedSelection = { | ||
text: selections[0].text, | ||
occurrence: selections[0].occurrence, | ||
occurrences: selections[0].occurrences, | ||
selected: true, | ||
}; | ||
const output = selectionHelpers.selectionArray(string, selections); | ||
expect(output.length).toEqual(3); | ||
expect(output[1]).toEqual(expectedSelection); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters