Skip to content

Commit

Permalink
Merge pull request #36 from sunesimonsen/dependabot/npm_and_yarn/pret…
Browse files Browse the repository at this point in the history
…tier-3.0.3

Bump prettier from 2.8.6 to 3.0.3
  • Loading branch information
sunesimonsen authored Oct 19, 2023
2 parents fb72253 + f3f6196 commit 37f031c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions bench.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ suite(
to: "Lorem Ipsum dolor sit amet, consectetur elit adipiscing. Cras tellus sapien, rhoncus sed bibendum in, facilisis non urna. Cras non mattis tellus, nec facilisis nisi. Proin vel purus eros. Morbi ultrices egestas mi vitae laoreet. Ut feugiat est lorem, a rhoncus mi lacinia vel. Aenean et velit neque. Quisque accumsan mi ligula, placerat lorem elementum ac. Nunc congue, eros eu aliquam commodo, leo orci tristique nulla, eu tempus quam justo eu neque. Nulla purus elit, porttitor ut sollicitudin sed, dictum vel justo. Mauris orci nisi, lacinia dictum augue nec, condimentum suscipit metus. Etiam lacinia pretium luctus. Mauris nulla turpis, suscipit vitae lobortis quis, tempor sed ex. Sed elementum enim eget venenatis mollis. Etiam sed congue neque, id tristique ex. Duis Vitae ipsum nec ligula vulputate ullamcorper. Phasellus fringilla odio turpis, eu condimentum turpis scelerisque quis.",
threshold: 20,
},
]
],
);

suite(
Expand All @@ -96,5 +96,5 @@ suite(
to: "Curabitur fringilla eros lacus, et placerat magna pretium in. Suspendisse ut egestas dui. Nam quis sapien eget enim interdum interdum. Phasellus metus ligula, lacinia at tellus eu, iaculis blandit libero. Proin risus sem, ornare a orci et, aliquam rutrum elit. Aenean ac posuere justo, a maximus orci. In molestie nibh quis libero elementum, vel pellentesque metus volutpat. Maecenas non quam felis. Proin congue aliquet mauris laoreet viverra. Fusce auctor sapien a neque varius pellentesque. Nam ut sem neque. Pellentesque bibendum aliquet consectetur. Nam finibus diam non vestibulum maximus. Integer aliquet mattis elit, vitae vehicula erat pulvinar at. Ut placerat viverra aliquam. Nulla vehicula hendrerit justo. Contrary to popular belief, Lorem Ipsum is not simply random text.",
threshold: 40,
},
]
],
);
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"mocha": "10.2.0",
"nanobench": "3.0.0",
"offline-github-changelog": "3.0.1",
"prettier": "2.8.6",
"prettier": "3.0.3",
"unexpected": "13.2.1",
"unexpected-check": "3.1.0"
},
Expand Down
16 changes: 8 additions & 8 deletions test/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ describe("ukkonen", () => {
"when called with",
[example.name1, example.name2],
"to equal",
example.distance
example.distance,
);
});
});
Expand All @@ -106,7 +106,7 @@ describe("ukkonen", () => {
},
"to be valid for all",
strings,
strings
strings,
);
});

Expand All @@ -116,11 +116,11 @@ describe("ukkonen", () => {
expect(
ukkonen(text, editedText),
"to equal",
levenshtein(text, editedText)
levenshtein(text, editedText),
);
},
"to be valid for all",
editedTexts
editedTexts,
);
});

Expand All @@ -131,13 +131,13 @@ describe("ukkonen", () => {
expect(
ukkonen(a, b, threshold),
"to equal",
levenshtein(a, b, threshold)
levenshtein(a, b, threshold),
);
},
"to be valid for all",
strings,
strings,
natural({ min: 10, max: 30 })
natural({ min: 10, max: 30 }),
);
});

Expand All @@ -147,12 +147,12 @@ describe("ukkonen", () => {
expect(
ukkonen(text, editedText, threshold),
"to equal",
levenshtein(text, editedText, threshold)
levenshtein(text, editedText, threshold),
);
},
"to be valid for all",
editedTexts,
natural({ min: 10, max: 30 })
natural({ min: 10, max: 30 }),
);
});
});
Expand Down

0 comments on commit 37f031c

Please sign in to comment.