diff options
author | Thomas Schmid <schmid-thomas@gmx.net> | 2020-02-23 19:20:29 +0300 |
---|---|---|
committer | Thomas Schmid <schmid-thomas@gmx.net> | 2020-02-23 19:20:29 +0300 |
commit | 7efc8a43eda1a6736cabfe35b8c812e4b060320c (patch) | |
tree | 65b1d7516d64bb2ca4386b8471cef69901f20f15 /tests | |
parent | 46007fdf5fcb47417339a6ca920c59982cb5c207 (diff) |
Fix Typos
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/tests/tests.js | 2 | ||||
-rwxr-xr-x | tests/tests/validators/ScriptValidator.js | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/tests/tests.js b/tests/tests/tests.js index 0716aba4..5920d101 100755 --- a/tests/tests/tests.js +++ b/tests/tests/tests.js @@ -59,7 +59,7 @@ suite.add({ "sieve-elements": { - script: "./../common/libSieve/RFC5228/tests/SieveRFC5228SnippletTest.js", + script: "./../common/libSieve/RFC5228/tests/SieveRFC5228SnippetTest.js", extend: "rfc5228" } }); diff --git a/tests/tests/validators/ScriptValidator.js b/tests/tests/validators/ScriptValidator.js index 3f1df235..d372bb13 100755 --- a/tests/tests/validators/ScriptValidator.js +++ b/tests/tests/validators/ScriptValidator.js @@ -136,10 +136,10 @@ /** * * @param {*} type - * @param {*} snipplet + * @param {*} snippet * @param {*} capabilities */ - function expectValidSnipplet(type, snipplet, capabilities) { + function expectValidSnippet(type, snippet, capabilities) { SieveGrammar.create(capabilities); @@ -153,12 +153,12 @@ let rv1 = element.toScript(); // ... and should match our expectation. - suite.assertEquals(snipplet, rv1); + suite.assertEquals(snippet, rv1); // ... then try to parse these script sniplet let rv2 = doc.createByName(type, rv1).toScript(); - // and ensure both snipplets should be identical... + // and ensure both snippets should be identical... suite.assertEquals(rv1, rv2); if (capabilities) { @@ -177,6 +177,6 @@ return doc; } - suite.expectValidSnipplet = expectValidSnipplet; + suite.expectValidSnippet = expectValidSnippet; })(window); |