Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- describe("Spec should check functions related to words offsets", function () {
- it("should check basic words slit", function () {
- const words = specBase.getFixture('adjustment.json');
- let index = 1;
- wordsOffsetsSpec.init(words[index].textBefore);
- let result = wordsOffsetsSpec.debug();
- delete result.adjustments;
- expect(result).toEqual({
- offsets: words[index].offsetsAfter,
- matchs: words[index].wordsBefore,
- adjustment: words[index].adjustments[words[index].adjustments.length - 1]
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement