diff --git a/docs/index.md b/docs/index.md index 04dcea4..506f39a 100644 --- a/docs/index.md +++ b/docs/index.md @@ -317,7 +317,7 @@ assert.match( return "yeah"; }, }, - "Yeah!" + "Yeah!", ); // Passes ``` @@ -340,7 +340,7 @@ assert.match( return "yeah!"; }, }, - /yeah/ + /yeah/, ); // Passes assert.match(234, /[a-z]/); // Fails ``` @@ -358,7 +358,7 @@ assert.match( return "42"; }, }, - 42 + 42, ); // Passes assert.match(234, 1234); // Fails ``` @@ -387,7 +387,7 @@ assert.match( }, function () { return true; - } + }, ); // Fails @@ -417,7 +417,7 @@ assert.match( }, { name: "Chris", - } + }, ); // Fails @@ -1328,7 +1328,7 @@ assert.exception( function () { throw new TypeError("Ooops!"); }, - { name: "TypeError" } + { name: "TypeError" }, ); // Fails, wrong exception type @@ -1336,7 +1336,7 @@ assert.exception( function () { throw new Error("Aww"); }, - { name: "TypeError" } + { name: "TypeError" }, ); // Fails, wrong exception message @@ -1344,7 +1344,7 @@ assert.exception( function () { throw new Error("Aww"); }, - { message: "Ooops!" } + { message: "Ooops!" }, ); // Fails, wrong exception type @@ -1358,7 +1358,7 @@ assert.exception( } return true; }, - "Type of exception is wrong!" + "Type of exception is wrong!", ); // with message to print, if test fails ``` diff --git a/lib/assert-exception-unexpected-exception.test.js b/lib/assert-exception-unexpected-exception.test.js index 024c4a5..8ae0b62 100644 --- a/lib/assert-exception-unexpected-exception.test.js +++ b/lib/assert-exception-unexpected-exception.test.js @@ -10,13 +10,13 @@ describe("assert.exception unexpected exception", function () { throw new Error("apple pie"); }, { name: "TypeError" }, - "Wow" + "Wow", ); throw new Error("Expected to throw"); } catch (e) { referee.assert.match( e.message, - "Wow: Expected { name: 'TypeError' } but threw 'Error' ('apple pie')" + "Wow: Expected { name: 'TypeError' } but threw 'Error' ('apple pie')", ); } }); @@ -28,13 +28,13 @@ describe("assert.exception unexpected exception", function () { throw new Error("apple pie"); }, { name: "Error", message: "Aww" }, - "Wow" + "Wow", ); throw new Error("Expected to throw"); } catch (e) { referee.assert.match( e.message, - "Wow: Expected { name: 'Error', message: 'Aww' } but threw 'Error' ('apple pie')" + "Wow: Expected { name: 'Error', message: 'Aww' } but threw 'Error' ('apple pie')", ); } }); diff --git a/lib/assert.test.js b/lib/assert.test.js index 5d26d57..234e229 100644 --- a/lib/assert.test.js +++ b/lib/assert.test.js @@ -18,7 +18,7 @@ describe("assert", function () { } catch (error) { referee.assert.equals( error.message, - "[assert] Expected to receive at least 1 argument(s)" + "[assert] Expected to receive at least 1 argument(s)", ); } }); @@ -51,7 +51,7 @@ describe("assert", function () { function () { referee.assert(false); }, - { message: "[assert] Expected false to be truthy" } + { message: "[assert] Expected false to be truthy" }, ); }); @@ -110,7 +110,7 @@ describe("assert", function () { } catch (e) { referee.assert.equals( e.message, - "[assert] Expected to receive at least 1 argument(s)" + "[assert] Expected to receive at least 1 argument(s)", ); } }); diff --git a/lib/assertions/class-name.test.js b/lib/assertions/class-name.test.js index 46862fa..be7a69c 100644 --- a/lib/assertions/class-name.test.js +++ b/lib/assertions/class-name.test.js @@ -13,11 +13,11 @@ describe("assert.className", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.className] Expected to receive at least 2 argument(s)" + "[assert.className] Expected to receive at least 2 argument(s)", ); assert.equal(error.name, "AssertionError"); return true; - } + }, ); }); @@ -30,11 +30,11 @@ describe("assert.className", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.className] Expected to receive at least 2 argument(s)" + "[assert.className] Expected to receive at least 2 argument(s)", ); assert.equal(error.name, "AssertionError"); return true; - } + }, ); }); @@ -47,12 +47,12 @@ describe("assert.className", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.className] Expected object to have className property" + "[assert.className] Expected object to have className property", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.className"); return true; - } + }, ); }); @@ -65,12 +65,12 @@ describe("assert.className", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.className] Nope: Expected object's className to include 'item' but was ''" + "[assert.className] Nope: Expected object's className to include 'item' but was ''", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.className"); return true; - } + }, ); }); @@ -91,12 +91,12 @@ describe("assert.className", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.className] Expected object's className to include 'item post' but was 'feed item'" + "[assert.className] Expected object's className to include 'item post' but was 'feed item'", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.className"); return true; - } + }, ); }); @@ -132,11 +132,11 @@ describe("refute.className", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.className] Expected to receive at least 2 argument(s)" + "[refute.className] Expected to receive at least 2 argument(s)", ); assert.equal(error.name, "AssertionError"); return true; - } + }, ); }); @@ -149,11 +149,11 @@ describe("refute.className", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.className] Expected to receive at least 2 argument(s)" + "[refute.className] Expected to receive at least 2 argument(s)", ); assert.equal(error.name, "AssertionError"); return true; - } + }, ); }); @@ -166,12 +166,12 @@ describe("refute.className", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.className] Expected object to have className property" + "[refute.className] Expected object to have className property", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.className"); return true; - } + }, ); }); @@ -184,12 +184,12 @@ describe("refute.className", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.className] Nope: Expected object to have className property" + "[refute.className] Nope: Expected object to have className property", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.className"); return true; - } + }, ); }); @@ -206,11 +206,11 @@ describe("refute.className", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.className] Expected object's className not to include 'item'" + "[refute.className] Expected object's className not to include 'item'", ); assert.equal(error.name, "AssertionError"); return true; - } + }, ); }); @@ -225,11 +225,11 @@ describe("refute.className", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[refute.className] ${message}: Expected object's className not to include 'item'` + `[refute.className] ${message}: Expected object's className not to include 'item'`, ); assert.equal(error.name, "AssertionError"); return true; - } + }, ); }); @@ -242,11 +242,11 @@ describe("refute.className", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.className] Expected object's className not to include 'item'" + "[refute.className] Expected object's className not to include 'item'", ); assert.equal(error.name, "AssertionError"); return true; - } + }, ); }); @@ -263,11 +263,11 @@ describe("refute.className", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.className] Expected object's className not to include 'item post'" + "[refute.className] Expected object's className not to include 'item post'", ); assert.equal(error.name, "AssertionError"); return true; - } + }, ); }); @@ -280,11 +280,11 @@ describe("refute.className", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.className] Expected object's className not to include 'e a d'" + "[refute.className] Expected object's className not to include 'e a d'", ); assert.equal(error.name, "AssertionError"); return true; - } + }, ); }); @@ -297,11 +297,11 @@ describe("refute.className", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.className] Expected object's className not to include [ 'e', 'a', 'd' ]" + "[refute.className] Expected object's className not to include [ 'e', 'a', 'd' ]", ); assert.equal(error.name, "AssertionError"); return true; - } + }, ); }); diff --git a/lib/assertions/contains.test.js b/lib/assertions/contains.test.js index 2a396ef..7be973e 100644 --- a/lib/assertions/contains.test.js +++ b/lib/assertions/contains.test.js @@ -17,12 +17,12 @@ describe("assert.contains", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.contains] Expected [ 0, 1, 2 ] to contain 3" + "[assert.contains] Expected [ 0, 1, 2 ] to contain 3", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.contains"); return true; - } + }, ); }); @@ -37,12 +37,12 @@ describe("assert.contains", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.contains] ${message}: Expected [ 0, 1, 2 ] to contain 3` + `[assert.contains] ${message}: Expected [ 0, 1, 2 ] to contain 3`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.contains"); return true; - } + }, ); }); @@ -64,12 +64,12 @@ describe("assert.contains", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.contains] Expected [ {} ] to contain {}" + "[assert.contains] Expected [ {} ] to contain {}", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.contains"); return true; - } + }, ); }); }); @@ -84,12 +84,12 @@ describe("refute.contains", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.contains] Expected [ 0, 1, 2 ] not to contain 1" + "[refute.contains] Expected [ 0, 1, 2 ] not to contain 1", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.contains"); return true; - } + }, ); }); @@ -104,12 +104,12 @@ describe("refute.contains", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[refute.contains] ${message}: Expected [ 0, 1, 2 ] not to contain 1` + `[refute.contains] ${message}: Expected [ 0, 1, 2 ] not to contain 1`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.contains"); return true; - } + }, ); }); @@ -128,12 +128,12 @@ describe("refute.contains", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.contains] Expected [ {} ] not to contain {}" + "[refute.contains] Expected [ {} ] not to contain {}", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.contains"); return true; - } + }, ); }); diff --git a/lib/assertions/equals.js b/lib/assertions/equals.js index 0107c3d..6326054 100644 --- a/lib/assertions/equals.js +++ b/lib/assertions/equals.js @@ -9,7 +9,7 @@ module.exports = function (referee) { assert: function (actual, expected) { if (typeof expected === "undefined") { return this.fail( - "Expectation for equals should not be undefined. Use assert.isUndefined instead." + "Expectation for equals should not be undefined. Use assert.isUndefined instead.", ); } return samsam.deepEqual(actual, expected); diff --git a/lib/assertions/equals.test.js b/lib/assertions/equals.test.js index ee582ea..e92652a 100644 --- a/lib/assertions/equals.test.js +++ b/lib/assertions/equals.test.js @@ -44,11 +44,11 @@ describe("assert.equals", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.equals] Expectation for equals should not be undefined. Use assert.isUndefined instead." + "[assert.equals] Expectation for equals should not be undefined. Use assert.isUndefined instead.", ); assert.equal(error.operator, "assert.equals"); return true; - } + }, ); }); @@ -72,12 +72,12 @@ describe("assert.equals", function () { assert.equal( error.message, `[assert.equals] ${inspect( - functionA - )} expected to be equal to ${inspect(functionB)}` + functionA, + )} expected to be equal to ${inspect(functionB)}`, ); assert.equal(error.operator, "assert.equals"); return true; - } + }, ); }); @@ -99,11 +99,11 @@ describe("assert.equals", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.equals] ${date.toISOString()} expected to be equal to ${anotherDate.toISOString()}` + `[assert.equals] ${date.toISOString()} expected to be equal to ${anotherDate.toISOString()}`, ); assert.equal(error.operator, "assert.equals"); return true; - } + }, ); }); @@ -116,12 +116,12 @@ describe("assert.equals", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.equals] ${date.toISOString()} expected to be equal to null` + `[assert.equals] ${date.toISOString()} expected to be equal to null`, ); assert.equal(error.operator, "assert.equals"); assert.equal(error.name, "AssertionError"); return true; - } + }, ); }); @@ -135,11 +135,11 @@ describe("assert.equals", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.equals] '4' expected to be equal to 4" + "[assert.equals] '4' expected to be equal to 4", ); assert.equal(error.operator, "assert.equals"); return true; - } + }, ); }); it("should fail when comparing number and string with coercion", function () { @@ -152,11 +152,11 @@ describe("assert.equals", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.equals] 4 expected to be equal to '4'" + "[assert.equals] 4 expected to be equal to '4'", ); assert.equal(error.operator, "assert.equals"); return true; - } + }, ); }); @@ -171,11 +171,11 @@ describe("assert.equals", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.equals] 32 expected to be equal to [Number: 32]" + "[assert.equals] 32 expected to be equal to [Number: 32]", ); assert.equal(error.operator, "assert.equals"); return true; - } + }, ); }); @@ -190,11 +190,11 @@ describe("assert.equals", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.equals] [Number: 32] expected to be equal to 32" + "[assert.equals] [Number: 32] expected to be equal to 32", ); assert.equal(error.operator, "assert.equals"); return true; - } + }, ); }); @@ -208,11 +208,11 @@ describe("assert.equals", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.equals] 0 expected to be equal to ''" + "[assert.equals] 0 expected to be equal to ''", ); assert.equal(error.operator, "assert.equals"); return true; - } + }, ); }); @@ -226,11 +226,11 @@ describe("assert.equals", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.equals] '' expected to be equal to 0" + "[assert.equals] '' expected to be equal to 0", ); assert.equal(error.operator, "assert.equals"); return true; - } + }, ); }); @@ -245,11 +245,11 @@ describe("assert.equals", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.equals] '4' expected to be equal to [String: '4']" + "[assert.equals] '4' expected to be equal to [String: '4']", ); assert.equal(error.operator, "assert.equals"); return true; - } + }, ); }); @@ -264,11 +264,11 @@ describe("assert.equals", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.equals] [String: '4'] expected to be equal to '4'" + "[assert.equals] [String: '4'] expected to be equal to '4'", ); assert.equal(error.operator, "assert.equals"); return true; - } + }, ); }); @@ -286,11 +286,11 @@ describe("assert.equals", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.equals] -0 expected to be equal to 0" + "[assert.equals] -0 expected to be equal to 0", ); assert.equal(error.operator, "assert.equals"); return true; - } + }, ); }); @@ -304,11 +304,11 @@ describe("assert.equals", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.equals] { id: 42 } expected to be equal to { id: 42, di: 24 }" + "[assert.equals] { id: 42 } expected to be equal to { id: 42, di: 24 }", ); assert.equal(error.operator, "assert.equals"); return true; - } + }, ); }); @@ -322,11 +322,11 @@ describe("assert.equals", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.equals] { id: undefined } expected to be equal to { di: 24 }" + "[assert.equals] { id: undefined } expected to be equal to { di: 24 }", ); assert.equal(error.operator, "assert.equals"); return true; - } + }, ); }); @@ -340,11 +340,11 @@ describe("assert.equals", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.equals] { id: 24 } expected to be equal to { id: undefined }" + "[assert.equals] { id: 24 } expected to be equal to { id: undefined }", ); assert.equal(error.operator, "assert.equals"); return true; - } + }, ); }); @@ -366,11 +366,11 @@ describe("assert.equals", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.equals] { id: 42 } expected to be equal to { id: 24 }" + "[assert.equals] { id: 42 } expected to be equal to { id: 24 }", ); assert.equal(error.operator, "assert.equals"); return true; - } + }, ); }); @@ -399,7 +399,7 @@ describe("assert.equals", function () { it("should pass when comparing arrays", function () { referee.assert.equals( [1, 2, "Hey there", func, { id: 42, prop: [2, 3] }], - [1, 2, "Hey there", func, { id: 42, prop: [2, 3] }] + [1, 2, "Hey there", func, { id: 42, prop: [2, 3] }], ); }); @@ -421,11 +421,11 @@ describe("assert.equals", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.equals] [ [ 'hey' ] ] expected to be equal to [ 'hey' ]" + "[assert.equals] [ [ 'hey' ] ] expected to be equal to [ 'hey' ]", ); assert.equal(error.operator, "assert.equals"); return true; - } + }, ); }); @@ -443,11 +443,11 @@ describe("assert.equals", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.equals] /[a-z]+/ expected to be equal to /[a-z]+/ { id: 42 }" + "[assert.equals] /[a-z]+/ expected to be equal to /[a-z]+/ { id: 42 }", ); assert.equal(error.operator, "assert.equals"); return true; - } + }, ); }); it("should fail when comparing different objects", function () { @@ -460,11 +460,11 @@ describe("assert.equals", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.equals] { id: 42 } expected to be equal to {}" + "[assert.equals] { id: 42 } expected to be equal to {}", ); assert.equal(error.operator, "assert.equals"); return true; - } + }, ); }); it("should fail when comparing object to null", function () { @@ -477,11 +477,11 @@ describe("assert.equals", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.equals] {} expected to be equal to null" + "[assert.equals] {} expected to be equal to null", ); assert.equal(error.operator, "assert.equals"); return true; - } + }, ); }); it("should fail when comparing object to undefined", function () { @@ -494,11 +494,11 @@ describe("assert.equals", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.equals] Expectation for equals should not be undefined. Use assert.isUndefined instead." + "[assert.equals] Expectation for equals should not be undefined. Use assert.isUndefined instead.", ); assert.equal(error.operator, "assert.equals"); return true; - } + }, ); }); it("should fail when comparing object to false", function () { @@ -511,11 +511,11 @@ describe("assert.equals", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.equals] {} expected to be equal to false" + "[assert.equals] {} expected to be equal to false", ); assert.equal(error.operator, "assert.equals"); return true; - } + }, ); }); it("should fail when comparing false to object", function () { @@ -528,11 +528,11 @@ describe("assert.equals", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.equals] false expected to be equal to {}" + "[assert.equals] false expected to be equal to {}", ); assert.equal(error.operator, "assert.equals"); return true; - } + }, ); }); it("should fail when comparing object to true", function () { @@ -545,11 +545,11 @@ describe("assert.equals", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.equals] {} expected to be equal to true" + "[assert.equals] {} expected to be equal to true", ); assert.equal(error.operator, "assert.equals"); return true; - } + }, ); }); it("should fail when comparing true to object", function () { @@ -562,11 +562,11 @@ describe("assert.equals", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.equals] true expected to be equal to {}" + "[assert.equals] true expected to be equal to {}", ); assert.equal(error.operator, "assert.equals"); return true; - } + }, ); }); it("should fail when comparing 'empty' object to date", function () { @@ -579,11 +579,11 @@ describe("assert.equals", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.equals] {} expected to be equal to ${date.toISOString()}` + `[assert.equals] {} expected to be equal to ${date.toISOString()}`, ); assert.equal(error.operator, "assert.equals"); return true; - } + }, ); }); @@ -598,11 +598,11 @@ describe("assert.equals", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.equals] {} expected to be equal to [String: '']" + "[assert.equals] {} expected to be equal to [String: '']", ); assert.equal(error.operator, "assert.equals"); return true; - } + }, ); }); @@ -617,11 +617,11 @@ describe("assert.equals", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.equals] {} expected to be equal to [Number: 0]" + "[assert.equals] {} expected to be equal to [Number: 0]", ); assert.equal(error.operator, "assert.equals"); return true; - } + }, ); }); @@ -635,11 +635,11 @@ describe("assert.equals", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.equals] {} expected to be equal to []" + "[assert.equals] {} expected to be equal to []", ); assert.equal(error.operator, "assert.equals"); return true; - } + }, ); }); @@ -659,11 +659,11 @@ describe("assert.equals", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.equals] [] expected to be equal to [Arguments] {}" + "[assert.equals] [] expected to be equal to [Arguments] {}", ); assert.equal(error.operator, "assert.equals"); return true; - } + }, ); }); @@ -683,13 +683,13 @@ describe("assert.equals", function () { function (error) { assert.equal( error.message, - "[assert.equals] Here: {} expected to be equal to 'Hey'" + "[assert.equals] Here: {} expected to be equal to 'Hey'", ); assert.equal(error.name, "AssertionError"); assert.equal(error.code, "ERR_ASSERTION"); assert.equal(error.operator, "assert.equals"); return true; - } + }, ); }); @@ -702,12 +702,12 @@ describe("assert.equals", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.equals] 'Yo!\\nMulti-\\nline' expected to be equal to 'Yo!\\nMultiline'" + "[assert.equals] 'Yo!\\nMulti-\\nline' expected to be equal to 'Yo!\\nMultiline'", ); assert.equal(error.operator, "assert.equals"); assert.equal(error.name, "AssertionError"); return true; - } + }, ); }); @@ -719,13 +719,13 @@ describe("assert.equals", function () { function (error) { assert.equal( error.message, - `[assert.equals] Eh? {} expected to be equal to 'Hey!'` + `[assert.equals] Eh? {} expected to be equal to 'Hey!'`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.code, "ERR_ASSERTION"); assert.equal(error.operator, "assert.equals"); return true; - } + }, ); }); }); @@ -739,13 +739,13 @@ describe("assert.refute", function () { function (error) { assert.equal( error.message, - "[refute.equals] { id: 42 } expected not to be equal to { id: 42 }" + "[refute.equals] { id: 42 } expected not to be equal to { id: 42 }", ); assert.equal(error.name, "AssertionError"); assert.equal(error.code, "ERR_ASSERTION"); assert.equal(error.operator, "refute.equals"); return true; - } + }, ); }); @@ -757,13 +757,13 @@ describe("assert.refute", function () { function (error) { assert.equal( error.message, - "[refute.equals] 'Hey' expected not to be equal to 'Hey'" + "[refute.equals] 'Hey' expected not to be equal to 'Hey'", ); assert.equal(error.name, "AssertionError"); assert.equal(error.code, "ERR_ASSERTION"); assert.equal(error.operator, "refute.equals"); return true; - } + }, ); }); @@ -775,13 +775,13 @@ describe("assert.refute", function () { function (error) { assert.equal( error.message, - "[refute.equals] 32 expected not to be equal to 32" + "[refute.equals] 32 expected not to be equal to 32", ); assert.equal(error.name, "AssertionError"); assert.equal(error.code, "ERR_ASSERTION"); assert.equal(error.operator, "refute.equals"); return true; - } + }, ); }); @@ -793,13 +793,13 @@ describe("assert.refute", function () { function (error) { assert.equal( error.message, - "[refute.equals] false expected not to be equal to false" + "[refute.equals] false expected not to be equal to false", ); assert.equal(error.name, "AssertionError"); assert.equal(error.code, "ERR_ASSERTION"); assert.equal(error.operator, "refute.equals"); return true; - } + }, ); }); @@ -811,13 +811,13 @@ describe("assert.refute", function () { function (error) { assert.equal( error.message, - "[refute.equals] null expected not to be equal to null" + "[refute.equals] null expected not to be equal to null", ); assert.equal(error.name, "AssertionError"); assert.equal(error.code, "ERR_ASSERTION"); assert.equal(error.operator, "refute.equals"); return true; - } + }, ); }); @@ -829,13 +829,13 @@ describe("assert.refute", function () { function (error) { assert.equal( error.message, - "[refute.equals] Expectation for equals should not be undefined. Use assert.isUndefined instead." + "[refute.equals] Expectation for equals should not be undefined. Use assert.isUndefined instead.", ); assert.equal(error.name, "AssertionError"); assert.equal(error.code, "ERR_ASSERTION"); assert.equal(error.operator, "refute.equals"); return true; - } + }, ); }); @@ -847,13 +847,13 @@ describe("assert.refute", function () { function (error) { assert.equal( error.message, - "[refute.equals] [Function: func] expected not to be equal to [Function: func]" + "[refute.equals] [Function: func] expected not to be equal to [Function: func]", ); assert.equal(error.name, "AssertionError"); assert.equal(error.code, "ERR_ASSERTION"); assert.equal(error.operator, "refute.equals"); return true; - } + }, ); }); @@ -873,13 +873,13 @@ describe("assert.refute", function () { function (error) { assert.equal( error.message, - "[refute.equals] [] expected not to be equal to []" + "[refute.equals] [] expected not to be equal to []", ); assert.equal(error.name, "AssertionError"); assert.equal(error.code, "ERR_ASSERTION"); assert.equal(error.operator, "refute.equals"); return true; - } + }, ); }); @@ -891,13 +891,13 @@ describe("assert.refute", function () { function (error) { assert.equal( error.message, - `[refute.equals] ${date.toISOString()} expected not to be equal to ${sameDate.toISOString()}` + `[refute.equals] ${date.toISOString()} expected not to be equal to ${sameDate.toISOString()}`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.code, "ERR_ASSERTION"); assert.equal(error.operator, "refute.equals"); return true; - } + }, ); }); @@ -941,13 +941,13 @@ describe("assert.refute", function () { function (error) { assert.equal( error.message, - `[refute.equals] { id: 42 } expected not to be equal to { id: 42 }` + `[refute.equals] { id: 42 } expected not to be equal to { id: 42 }`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.code, "ERR_ASSERTION"); assert.equal(error.operator, "refute.equals"); return true; - } + }, ); }); @@ -959,13 +959,13 @@ describe("assert.refute", function () { function (error) { assert.equal( error.message, - `[refute.equals] { obj: { id: 42 } } expected not to be equal to { obj: { id: 42 } }` + `[refute.equals] { obj: { id: 42 } } expected not to be equal to { obj: { id: 42 } }`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.code, "ERR_ASSERTION"); assert.equal(error.operator, "refute.equals"); return true; - } + }, ); }); @@ -981,13 +981,13 @@ describe("assert.refute", function () { function (error) { assert.equal( error.message, - `[refute.equals] NaN expected not to be equal to NaN` + `[refute.equals] NaN expected not to be equal to NaN`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.code, "ERR_ASSERTION"); assert.equal(error.operator, "refute.equals"); return true; - } + }, ); }); @@ -1023,14 +1023,14 @@ describe("assert.refute", function () { assert.equal( error.message, `[refute.equals] ${inspect( - deepObject - )} expected not to be equal to ${inspect(complexObject)}` + deepObject, + )} expected not to be equal to ${inspect(complexObject)}`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.code, "ERR_ASSERTION"); assert.equal(error.operator, "refute.equals"); return true; - } + }, ); }); @@ -1045,13 +1045,13 @@ describe("assert.refute", function () { function (error) { assert.equal( error.message, - `[refute.equals] [ 1, 2, 'Hey there', [Function: func], { id: 42, prop: [ 2, 3 ] } ] expected not to be equal to [ 1, 2, 'Hey there', [Function: func], { id: 42, prop: [ 2, 3 ] } ]` + `[refute.equals] [ 1, 2, 'Hey there', [Function: func], { id: 42, prop: [ 2, 3 ] } ] expected not to be equal to [ 1, 2, 'Hey there', [Function: func], { id: 42, prop: [ 2, 3 ] } ]`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.code, "ERR_ASSERTION"); assert.equal(error.operator, "refute.equals"); return true; - } + }, ); }); @@ -1063,13 +1063,13 @@ describe("assert.refute", function () { function (error) { assert.equal( error.message, - `[refute.equals] /a/ expected not to be equal to /a/` + `[refute.equals] /a/ expected not to be equal to /a/`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.code, "ERR_ASSERTION"); assert.equal(error.operator, "refute.equals"); return true; - } + }, ); }); @@ -1081,13 +1081,13 @@ describe("assert.refute", function () { function (error) { assert.equal( error.message, - `[refute.equals] /[a-z]+/ expected not to be equal to /[a-z]+/` + `[refute.equals] /[a-z]+/ expected not to be equal to /[a-z]+/`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.code, "ERR_ASSERTION"); assert.equal(error.operator, "refute.equals"); return true; - } + }, ); }); @@ -1119,13 +1119,13 @@ describe("assert.refute", function () { function (error) { assert.equal( error.message, - `[refute.equals] Expectation for equals should not be undefined. Use assert.isUndefined instead.` + `[refute.equals] Expectation for equals should not be undefined. Use assert.isUndefined instead.`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.code, "ERR_ASSERTION"); assert.equal(error.operator, "refute.equals"); return true; - } + }, ); }); @@ -1181,13 +1181,13 @@ describe("assert.refute", function () { function (error) { assert.equal( error.message, - `[refute.equals] [Arguments] { '0': 1, '1': 2, '2': {}, '3': [] } expected not to be equal to [ 1, 2, {}, [] ]` + `[refute.equals] [Arguments] { '0': 1, '1': 2, '2': {}, '3': [] } expected not to be equal to [ 1, 2, {}, [] ]`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.code, "ERR_ASSERTION"); assert.equal(error.operator, "refute.equals"); return true; - } + }, ); }); @@ -1199,13 +1199,13 @@ describe("assert.refute", function () { function (error) { assert.equal( error.message, - `[refute.equals] [Arguments] {} expected not to be equal to []` + `[refute.equals] [Arguments] {} expected not to be equal to []`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.code, "ERR_ASSERTION"); assert.equal(error.operator, "refute.equals"); return true; - } + }, ); }); @@ -1221,13 +1221,13 @@ describe("assert.refute", function () { function (error) { assert.equal( error.message, - `[refute.equals] [Arguments] { '0': 1, '1': 2, '2': {}, '3': [] } expected not to be equal to { '0': 1, '1': 2, '2': {}, '3': [], length: 4 }` + `[refute.equals] [Arguments] { '0': 1, '1': 2, '2': {}, '3': [] } expected not to be equal to { '0': 1, '1': 2, '2': {}, '3': [], length: 4 }`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.code, "ERR_ASSERTION"); assert.equal(error.operator, "refute.equals"); return true; - } + }, ); }); @@ -1239,13 +1239,13 @@ describe("assert.refute", function () { function (error) { assert.equal( error.message, - `[refute.equals] Eh? {} expected not to be equal to {}` + `[refute.equals] Eh? {} expected not to be equal to {}`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.code, "ERR_ASSERTION"); assert.equal(error.operator, "refute.equals"); return true; - } + }, ); }); }); diff --git a/lib/assertions/exception.test.js b/lib/assertions/exception.test.js index 46f9f00..343fe38 100644 --- a/lib/assertions/exception.test.js +++ b/lib/assertions/exception.test.js @@ -25,7 +25,7 @@ describe("assert.exception", function () { function () { throw new TypeError("Oh hmm"); }, - { name: "TypeError" } + { name: "TypeError" }, ); }); @@ -35,13 +35,13 @@ describe("assert.exception", function () { function () { throw new Error(); }, - { name: "TypeError" } + { name: "TypeError" }, ); } catch (error) { assert( error.message.startsWith( - "[assert.exception] Expected { name: 'TypeError' } but threw 'Error' ('')" - ) + "[assert.exception] Expected { name: 'TypeError' } but threw 'Error' ('')", + ), ); } }); @@ -52,13 +52,13 @@ describe("assert.exception", function () { function () { throw new Error("Aright"); }, - { message: "Aww" } + { message: "Aww" }, ); } catch (error) { assert( error.message.startsWith( - "[assert.exception] Expected { message: 'Aww' } but threw 'Error' ('Aright')" - ) + "[assert.exception] Expected { message: 'Aww' } but threw 'Error' ('Aright')", + ), ); } }); @@ -68,7 +68,7 @@ describe("assert.exception", function () { function () { throw new TypeError("Aright"); }, - { name: "Type", message: "Ar" } + { name: "Type", message: "Ar" }, ); }); @@ -78,12 +78,12 @@ describe("assert.exception", function () { function () { return undefined; }, - { name: "TypeError" } + { name: "TypeError" }, ); } catch (error) { assert.equal( error.message, - "[assert.exception] Expected { name: 'TypeError' } but no exception was thrown" + "[assert.exception] Expected { name: 'TypeError' } but no exception was thrown", ); } }); @@ -105,12 +105,12 @@ describe("assert.exception", function () { return undefined; }, { name: "TypeError" }, - "Hmm" + "Hmm", ); } catch (error) { assert.equal( error.message, - "[assert.exception] Hmm: Expected { name: 'TypeError' } but no exception was thrown" + "[assert.exception] Hmm: Expected { name: 'TypeError' } but no exception was thrown", ); } }); @@ -122,7 +122,7 @@ describe("assert.exception", function () { }, function (err) { return err.name === "TypeError"; - } + }, ); }); @@ -134,7 +134,7 @@ describe("assert.exception", function () { }, function (err) { return err.name; - } + }, ); } catch (error) { assert.equal(error.message, "[assert.exception] Expected exception"); @@ -149,12 +149,12 @@ describe("assert.exception", function () { }, function (err) { return err.name === "Error"; - } + }, ); } catch (error) { assert.equal( error.message, - "[assert.exception] Expected thrown 'TypeError' ('Aright') to pass matcher function" + "[assert.exception] Expected thrown 'TypeError' ('Aright') to pass matcher function", ); } }); @@ -165,7 +165,7 @@ describe("assert.exception", function () { } catch (error) { assert.equal( error.message, - "[assert.exception] Expected to receive at least 1 argument(s)" + "[assert.exception] Expected to receive at least 1 argument(s)", ); } }); @@ -207,7 +207,7 @@ describe("refute.exception", function () { } catch (error) { assert.equal( error.message, - "[refute.exception] Expected not to throw but threw 'Error' ('Yo, Malcolm')" + "[refute.exception] Expected not to throw but threw 'Error' ('Yo, Malcolm')", ); } }); @@ -232,7 +232,7 @@ describe("refute.exception", function () { } catch (error) { assert.equal( error.message, - "[refute.exception] Expected not to throw but threw 'Error' (':(')" + "[refute.exception] Expected not to throw but threw 'Error' (':(')", ); } }); @@ -245,7 +245,7 @@ describe("refute.exception", function () { } catch (error) { assert.equal( error.message, - "[refute.exception] Jeez: Expected not to throw but threw 'Error' (':(')" + "[refute.exception] Jeez: Expected not to throw but threw 'Error' (':(')", ); } }); @@ -256,7 +256,7 @@ describe("refute.exception", function () { } catch (error) { assert.equal( error.message, - "[refute.exception] Expected to receive at least 1 argument(s)" + "[refute.exception] Expected to receive at least 1 argument(s)", ); } }); diff --git a/lib/assertions/greater.test.js b/lib/assertions/greater.test.js index 3c3b930..f6fe7c2 100644 --- a/lib/assertions/greater.test.js +++ b/lib/assertions/greater.test.js @@ -17,12 +17,12 @@ describe("assert.greater", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.greater] Expected 1 to be greater than 1" + "[assert.greater] Expected 1 to be greater than 1", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.greater"); return true; - } + }, ); }); @@ -35,12 +35,12 @@ describe("assert.greater", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.greater] Expected 1 to be greater than 2" + "[assert.greater] Expected 1 to be greater than 2", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.greater"); return true; - } + }, ); }); @@ -55,12 +55,12 @@ describe("assert.greater", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.greater] ${message}: Expected 1 to be greater than 2` + `[assert.greater] ${message}: Expected 1 to be greater than 2`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.greater"); return true; - } + }, ); }); }); @@ -75,12 +75,12 @@ describe("refute.greater", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.greater] Expected 2 to be less than or equal to 1" + "[refute.greater] Expected 2 to be less than or equal to 1", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.greater"); return true; - } + }, ); }); @@ -95,12 +95,12 @@ describe("refute.greater", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[refute.greater] ${message}: Expected 2 to be less than or equal to 1` + `[refute.greater] ${message}: Expected 2 to be less than or equal to 1`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.greater"); return true; - } + }, ); }); diff --git a/lib/assertions/has-arity.js b/lib/assertions/has-arity.js index 7aef9c5..47517f8 100644 --- a/lib/assertions/has-arity.js +++ b/lib/assertions/has-arity.js @@ -7,13 +7,13 @@ function addHasArity(referee) { assert: function assert(actual, expected) { if (typeof actual !== "function") { throw new TypeError( - 'hasArity expects "actual" argument to be a Function' + 'hasArity expects "actual" argument to be a Function', ); } if (typeof expected !== "number" || expected < 0) { throw new TypeError( - 'hasArity expected "expected" argument to be a non-negative Number' + 'hasArity expected "expected" argument to be a non-negative Number', ); } diff --git a/lib/assertions/has-arity.test.js b/lib/assertions/has-arity.test.js index a322e9d..9f15140 100644 --- a/lib/assertions/has-arity.test.js +++ b/lib/assertions/has-arity.test.js @@ -75,7 +75,7 @@ describe("hasArity assertion", function () { { message: 'hasArity expects "actual" argument to be a Function', name: "TypeError", - } + }, ); } @@ -109,7 +109,7 @@ describe("hasArity assertion", function () { message: 'hasArity expected "expected" argument to be a non-negative Number', name: "TypeError", - } + }, ); } diff --git a/lib/assertions/has-prototype.test.js b/lib/assertions/has-prototype.test.js index 92b04ad..52c2a97 100644 --- a/lib/assertions/has-prototype.test.js +++ b/lib/assertions/has-prototype.test.js @@ -25,12 +25,12 @@ describe("assert.hasPrototype", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.hasPrototype] Expected {} to have ${myThingString} on its prototype chain` + `[assert.hasPrototype] Expected {} to have ${myThingString} on its prototype chain`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.hasPrototype"); return true; - } + }, ); }); @@ -43,12 +43,12 @@ describe("assert.hasPrototype", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.hasPrototype] Expected 3 to have ${myThingString} on its prototype chain` + `[assert.hasPrototype] Expected 3 to have ${myThingString} on its prototype chain`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.hasPrototype"); return true; - } + }, ); }); @@ -61,11 +61,11 @@ describe("assert.hasPrototype", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.hasPrototype] Expected to receive at least 2 argument(s)" + "[assert.hasPrototype] Expected to receive at least 2 argument(s)", ); assert.equal(error.name, "AssertionError"); return true; - } + }, ); }); @@ -78,11 +78,11 @@ describe("assert.hasPrototype", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.hasPrototype] Expected to receive at least 2 argument(s)" + "[assert.hasPrototype] Expected to receive at least 2 argument(s)", ); assert.equal(error.name, "AssertionError"); return true; - } + }, ); }); @@ -105,12 +105,12 @@ describe("assert.hasPrototype", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.hasPrototype] ${message}: Expected {} to have ${myThingString} on its prototype chain` + `[assert.hasPrototype] ${message}: Expected {} to have ${myThingString} on its prototype chain`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.hasPrototype"); return true; - } + }, ); }); }); @@ -125,11 +125,11 @@ describe("refute.hasPrototype", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.hasPrototype] Expected to receive at least 2 argument(s)" + "[refute.hasPrototype] Expected to receive at least 2 argument(s)", ); assert.equal(error.name, "AssertionError"); return true; - } + }, ); }); @@ -142,11 +142,11 @@ describe("refute.hasPrototype", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.hasPrototype] Expected to receive at least 2 argument(s)" + "[refute.hasPrototype] Expected to receive at least 2 argument(s)", ); assert.equal(error.name, "AssertionError"); return true; - } + }, ); }); @@ -159,12 +159,12 @@ describe("refute.hasPrototype", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[refute.hasPrototype] Expected MyThing {} not to have ${myThingString} on its prototype chain` + `[refute.hasPrototype] Expected MyThing {} not to have ${myThingString} on its prototype chain`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.hasPrototype"); return true; - } + }, ); }); @@ -177,12 +177,12 @@ describe("refute.hasPrototype", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[refute.hasPrototype] Expected MyThing {} not to have ${myThingString} on its prototype chain` + `[refute.hasPrototype] Expected MyThing {} not to have ${myThingString} on its prototype chain`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.hasPrototype"); return true; - } + }, ); }); @@ -202,19 +202,19 @@ describe("refute.hasPrototype", function () { referee.refute.hasPrototype( specializedThing, MyThing.prototype, - message + message, ); }, function (error) { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[refute.hasPrototype] ${message}: Expected MyThing {} not to have ${myThingString} on its prototype chain` + `[refute.hasPrototype] ${message}: Expected MyThing {} not to have ${myThingString} on its prototype chain`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.hasPrototype"); return true; - } + }, ); }); }); diff --git a/lib/assertions/is-array-buffer.test.js b/lib/assertions/is-array-buffer.test.js index 4128963..a10276a 100644 --- a/lib/assertions/is-array-buffer.test.js +++ b/lib/assertions/is-array-buffer.test.js @@ -21,13 +21,13 @@ describe("assert.isArrayBuffer", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isArrayBuffer] Expected [] to be an ArrayBuffer" + "[assert.isArrayBuffer] Expected [] to be an ArrayBuffer", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isArrayBuffer"); return true; - } + }, ); }); }); @@ -42,13 +42,13 @@ describe("assert.isArrayBuffer", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isArrayBuffer] Expected {} to be an ArrayBuffer" + "[assert.isArrayBuffer] Expected {} to be an ArrayBuffer", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isArrayBuffer"); return true; - } + }, ); }); }); @@ -63,13 +63,13 @@ describe("assert.isArrayBuffer", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isArrayBuffer] Expected [Arguments] {} to be an ArrayBuffer" + "[assert.isArrayBuffer] Expected [Arguments] {} to be an ArrayBuffer", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isArrayBuffer"); return true; - } + }, ); }); }); @@ -89,13 +89,13 @@ describe("refute.isArrayBuffer", function () { "[refute.isArrayBuffer] Expected ArrayBuffer {\n" + " [Uint8Contents]: <00 00 00 00 00 00 00 00>,\n" + " byteLength: 8\n" + - "} not to be an ArrayBuffer" + "} not to be an ArrayBuffer", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isArrayBuffer"); return true; - } + }, ); }); }); diff --git a/lib/assertions/is-array-like.test.js b/lib/assertions/is-array-like.test.js index 51a33c7..27689cc 100644 --- a/lib/assertions/is-array-like.test.js +++ b/lib/assertions/is-array-like.test.js @@ -27,12 +27,12 @@ describe("assert.isArrayLike", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isArrayLike] Expected {} to be array like" + "[assert.isArrayLike] Expected {} to be array like", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isArrayLike"); return true; - } + }, ); }); @@ -45,13 +45,13 @@ describe("assert.isArrayLike", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isArrayLike] Here! Expected {} to be array like" + "[assert.isArrayLike] Here! Expected {} to be array like", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isArrayLike"); return true; - } + }, ); }); }); @@ -66,13 +66,13 @@ describe("refute.isArrayLike", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.isArrayLike] Expected [] not to be array like" + "[refute.isArrayLike] Expected [] not to be array like", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isArrayLike"); return true; - } + }, ); }); @@ -85,13 +85,13 @@ describe("refute.isArrayLike", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.isArrayLike] Expected [Arguments] {} not to be array like" + "[refute.isArrayLike] Expected [Arguments] {} not to be array like", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isArrayLike"); return true; - } + }, ); }); @@ -111,13 +111,13 @@ describe("refute.isArrayLike", function () { " '3': 'Four',\n" + " length: 4,\n" + " splice: [Function: splice]\n" + - "} not to be array like" + "} not to be array like", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isArrayLike"); return true; - } + }, ); }); @@ -137,13 +137,13 @@ describe("refute.isArrayLike", function () { " '3': 'Four',\n" + " length: 4,\n" + " splice: [Function: splice]\n" + - "} not to be array like" + "} not to be array like", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isArrayLike"); return true; - } + }, ); }); diff --git a/lib/assertions/is-array.test.js b/lib/assertions/is-array.test.js index fb6ea8a..954c5d4 100644 --- a/lib/assertions/is-array.test.js +++ b/lib/assertions/is-array.test.js @@ -21,7 +21,7 @@ describe("assert.isArray", function () { assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isArray"); return true; - } + }, ); }); @@ -34,12 +34,12 @@ describe("assert.isArray", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isArray] Expected [Arguments] {} to be array" + "[assert.isArray] Expected [Arguments] {} to be array", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isArray"); return true; - } + }, ); }); @@ -59,12 +59,12 @@ describe("assert.isArray", function () { " '3': 'Four',\n" + " length: 4,\n" + " splice: [Function: splice]\n" + - "} to be array" + "} to be array", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isArray"); return true; - } + }, ); }); @@ -79,12 +79,12 @@ describe("assert.isArray", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.isArray] ${message}: Expected {} to be array` + `[assert.isArray] ${message}: Expected {} to be array`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isArray"); return true; - } + }, ); }); }); @@ -99,12 +99,12 @@ describe("refute.isArray", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.isArray] Expected [] not to be array" + "[refute.isArray] Expected [] not to be array", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isArray"); return true; - } + }, ); }); @@ -130,12 +130,12 @@ describe("refute.isArray", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[refute.isArray] ${message}: Expected [] not to be array` + `[refute.isArray] ${message}: Expected [] not to be array`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isArray"); return true; - } + }, ); }); }); diff --git a/lib/assertions/is-boolean.test.js b/lib/assertions/is-boolean.test.js index 6eadc75..389a281 100644 --- a/lib/assertions/is-boolean.test.js +++ b/lib/assertions/is-boolean.test.js @@ -22,12 +22,12 @@ describe("assert.isBoolean", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isBoolean] Expected [Function: noop] ('function') to be boolean" + "[assert.isBoolean] Expected [Function: noop] ('function') to be boolean", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isBoolean"); return true; - } + }, ); }); @@ -40,12 +40,12 @@ describe("assert.isBoolean", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isBoolean] Expected null ('object') to be boolean" + "[assert.isBoolean] Expected null ('object') to be boolean", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isBoolean"); return true; - } + }, ); }); @@ -60,12 +60,12 @@ describe("assert.isBoolean", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.isBoolean] ${message}: Expected 'hello' ('string') to be boolean` + `[assert.isBoolean] ${message}: Expected 'hello' ('string') to be boolean`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isBoolean"); return true; - } + }, ); }); }); @@ -80,12 +80,12 @@ describe("refute.isBoolean", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.isBoolean] Expected true not to be boolean" + "[refute.isBoolean] Expected true not to be boolean", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isBoolean"); return true; - } + }, ); }); @@ -107,12 +107,12 @@ describe("refute.isBoolean", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[refute.isBoolean] ${message}: Expected true not to be boolean` + `[refute.isBoolean] ${message}: Expected true not to be boolean`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isBoolean"); return true; - } + }, ); }); }); diff --git a/lib/assertions/is-data-view.test.js b/lib/assertions/is-data-view.test.js index 713837b..9caa076 100644 --- a/lib/assertions/is-data-view.test.js +++ b/lib/assertions/is-data-view.test.js @@ -28,12 +28,12 @@ describe("assert.isDataView", function () { "[assert.isDataView] Expected ArrayBuffer {\n" + " [Uint8Contents]: <00 00 00 00 00 00 00 00>,\n" + " byteLength: 8\n" + - "} to be a DataView" + "} to be a DataView", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isDataView"); return true; - } + }, ); }); @@ -46,12 +46,12 @@ describe("assert.isDataView", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isDataView] Expected [] to be a DataView" + "[assert.isDataView] Expected [] to be a DataView", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isDataView"); return true; - } + }, ); }); it("should fail for Object", function () { @@ -63,12 +63,12 @@ describe("assert.isDataView", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isDataView] Expected {} to be a DataView" + "[assert.isDataView] Expected {} to be a DataView", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isDataView"); return true; - } + }, ); }); @@ -81,12 +81,12 @@ describe("assert.isDataView", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isDataView] Expected [Arguments] {} to be a DataView" + "[assert.isDataView] Expected [Arguments] {} to be a DataView", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isDataView"); return true; - } + }, ); }); it("should fail with custom message", function () { @@ -100,12 +100,12 @@ describe("assert.isDataView", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.isDataView] ${message}: Expected [] to be a DataView` + `[assert.isDataView] ${message}: Expected [] to be a DataView`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isDataView"); return true; - } + }, ); }); }); @@ -127,12 +127,12 @@ describe("refute.isDataView", function () { " [Uint8Contents]: <00 00 00 00 00 00 00 00>,\n" + " byteLength: 8\n" + " }\n" + - "} not to be a DataView" + "} not to be a DataView", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isDataView"); return true; - } + }, ); }); @@ -169,12 +169,12 @@ describe("refute.isDataView", function () { ` [Uint8Contents]: <00 00 00 00 00 00 00 00>,\n` + ` byteLength: 8\n` + ` }\n` + - `} not to be a DataView` + `} not to be a DataView`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isDataView"); return true; - } + }, ); }); }); diff --git a/lib/assertions/is-date.test.js b/lib/assertions/is-date.test.js index 33964d9..738bc9d 100644 --- a/lib/assertions/is-date.test.js +++ b/lib/assertions/is-date.test.js @@ -18,12 +18,12 @@ describe("assert.isDate", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isDate] Expected /[a-z]/ to be a Date" + "[assert.isDate] Expected /[a-z]/ to be a Date", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isDate"); return true; - } + }, ); }); @@ -36,12 +36,12 @@ describe("assert.isDate", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isDate] Expected 'apple pie' to be a Date" + "[assert.isDate] Expected 'apple pie' to be a Date", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isDate"); return true; - } + }, ); }); @@ -56,7 +56,7 @@ describe("assert.isDate", function () { assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isDate"); return true; - } + }, ); }); @@ -71,7 +71,7 @@ describe("assert.isDate", function () { assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isDate"); return true; - } + }, ); }); @@ -84,12 +84,12 @@ describe("assert.isDate", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isDate] Expected [Arguments] {} to be a Date" + "[assert.isDate] Expected [Arguments] {} to be a Date", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isDate"); return true; - } + }, ); }); @@ -104,12 +104,12 @@ describe("assert.isDate", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.isDate] ${message}: Expected {} to be a Date` + `[assert.isDate] ${message}: Expected {} to be a Date`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isDate"); return true; - } + }, ); }); }); @@ -126,12 +126,12 @@ describe("refute.isDate", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.isDate] Expected 1899-12-31T00:00:00.000Z not to be a Date" + "[refute.isDate] Expected 1899-12-31T00:00:00.000Z not to be a Date", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isDate"); return true; - } + }, ); }); @@ -163,7 +163,7 @@ describe("refute.isDate", function () { var suffix = date.toString().match(/\(.*\)$/)[0]; var expectedMessage = `[refute.isDate] ${message}${": Expected 1899-12-31T00:00:00.000Z not to be a Date".replace( "{suffix}", - suffix + suffix, )}`; assert.throws( @@ -176,7 +176,7 @@ describe("refute.isDate", function () { assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isDate"); return true; - } + }, ); }); }); diff --git a/lib/assertions/is-error.test.js b/lib/assertions/is-error.test.js index fea43e5..f91929e 100644 --- a/lib/assertions/is-error.test.js +++ b/lib/assertions/is-error.test.js @@ -42,12 +42,12 @@ describe("assert.isError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isError] Expected 'not an error instance' to be an Error" + "[assert.isError] Expected 'not an error instance' to be an Error", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isError"); return true; - } + }, ); }); @@ -60,12 +60,12 @@ describe("assert.isError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isError] Expected [] to be an Error" + "[assert.isError] Expected [] to be an Error", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isError"); return true; - } + }, ); }); @@ -78,12 +78,12 @@ describe("assert.isError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isError] Expected {} to be an Error" + "[assert.isError] Expected {} to be an Error", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isError"); return true; - } + }, ); }); @@ -96,12 +96,12 @@ describe("assert.isError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isError] Expected [Arguments] {} to be an Error" + "[assert.isError] Expected [Arguments] {} to be an Error", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isError"); return true; - } + }, ); }); @@ -115,12 +115,12 @@ describe("assert.isError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.isError] ${message}: Expected 'not an error instance' to be an Error` + `[assert.isError] ${message}: Expected 'not an error instance' to be an Error`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isError"); return true; - } + }, ); }); }); @@ -135,12 +135,12 @@ describe("refute.isError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.isError] Expected Error not to be an Error" + "[refute.isError] Expected Error not to be an Error", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isError"); return true; - } + }, ); }); @@ -153,12 +153,12 @@ describe("refute.isError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.isError] Expected EvalError not to be an Error" + "[refute.isError] Expected EvalError not to be an Error", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isError"); return true; - } + }, ); }); @@ -171,12 +171,12 @@ describe("refute.isError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.isError] Expected RangeError not to be an Error" + "[refute.isError] Expected RangeError not to be an Error", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isError"); return true; - } + }, ); }); @@ -189,12 +189,12 @@ describe("refute.isError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.isError] Expected ReferenceError not to be an Error" + "[refute.isError] Expected ReferenceError not to be an Error", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isError"); return true; - } + }, ); }); @@ -207,12 +207,12 @@ describe("refute.isError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.isError] Expected SyntaxError not to be an Error" + "[refute.isError] Expected SyntaxError not to be an Error", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isError"); return true; - } + }, ); }); @@ -225,12 +225,12 @@ describe("refute.isError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.isError] Expected TypeError not to be an Error" + "[refute.isError] Expected TypeError not to be an Error", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isError"); return true; - } + }, ); }); @@ -243,12 +243,12 @@ describe("refute.isError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.isError] Expected URIError not to be an Error" + "[refute.isError] Expected URIError not to be an Error", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isError"); return true; - } + }, ); }); @@ -279,12 +279,12 @@ describe("refute.isError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[refute.isError] ${message}: Expected Error not to be an Error` + `[refute.isError] ${message}: Expected Error not to be an Error`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isError"); return true; - } + }, ); }); }); diff --git a/lib/assertions/is-eval-error.test.js b/lib/assertions/is-eval-error.test.js index be71bf3..c901f41 100644 --- a/lib/assertions/is-eval-error.test.js +++ b/lib/assertions/is-eval-error.test.js @@ -14,12 +14,12 @@ describe("assert.isEvalError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isEvalError] Expected Error to be an EvalError" + "[assert.isEvalError] Expected Error to be an EvalError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isEvalError"); return true; - } + }, ); }); @@ -36,12 +36,12 @@ describe("assert.isEvalError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isEvalError] Expected RangeError to be an EvalError" + "[assert.isEvalError] Expected RangeError to be an EvalError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isEvalError"); return true; - } + }, ); }); @@ -54,12 +54,12 @@ describe("assert.isEvalError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isEvalError] Expected ReferenceError to be an EvalError" + "[assert.isEvalError] Expected ReferenceError to be an EvalError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isEvalError"); return true; - } + }, ); }); @@ -72,12 +72,12 @@ describe("assert.isEvalError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isEvalError] Expected SyntaxError to be an EvalError" + "[assert.isEvalError] Expected SyntaxError to be an EvalError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isEvalError"); return true; - } + }, ); }); @@ -90,12 +90,12 @@ describe("assert.isEvalError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isEvalError] Expected TypeError to be an EvalError" + "[assert.isEvalError] Expected TypeError to be an EvalError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isEvalError"); return true; - } + }, ); }); @@ -108,12 +108,12 @@ describe("assert.isEvalError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isEvalError] Expected URIError to be an EvalError" + "[assert.isEvalError] Expected URIError to be an EvalError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isEvalError"); return true; - } + }, ); }); @@ -126,12 +126,12 @@ describe("assert.isEvalError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isEvalError] Expected '8759e9fa-e0d8-4bc8-b85f-09433850b830' to be an EvalError" + "[assert.isEvalError] Expected '8759e9fa-e0d8-4bc8-b85f-09433850b830' to be an EvalError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isEvalError"); return true; - } + }, ); }); @@ -144,12 +144,12 @@ describe("assert.isEvalError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isEvalError] Expected [] to be an EvalError" + "[assert.isEvalError] Expected [] to be an EvalError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isEvalError"); return true; - } + }, ); }); @@ -162,12 +162,12 @@ describe("assert.isEvalError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isEvalError] Expected {} to be an EvalError" + "[assert.isEvalError] Expected {} to be an EvalError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isEvalError"); return true; - } + }, ); }); @@ -180,12 +180,12 @@ describe("assert.isEvalError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isEvalError] Expected [Arguments] {} to be an EvalError" + "[assert.isEvalError] Expected [Arguments] {} to be an EvalError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isEvalError"); return true; - } + }, ); }); @@ -200,12 +200,12 @@ describe("assert.isEvalError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.isEvalError] ${message}: Expected Error to be an EvalError` + `[assert.isEvalError] ${message}: Expected Error to be an EvalError`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isEvalError"); return true; - } + }, ); }); }); @@ -224,12 +224,12 @@ describe("refute.isEvalError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.isEvalError] Expected EvalError not to be an EvalError" + "[refute.isEvalError] Expected EvalError not to be an EvalError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isEvalError"); return true; - } + }, ); }); @@ -280,12 +280,12 @@ describe("refute.isEvalError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[refute.isEvalError] ${message}: Expected EvalError not to be an EvalError` + `[refute.isEvalError] ${message}: Expected EvalError not to be an EvalError`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isEvalError"); return true; - } + }, ); }); }); diff --git a/lib/assertions/is-false.test.js b/lib/assertions/is-false.test.js index 3d1de87..ddb9c0b 100644 --- a/lib/assertions/is-false.test.js +++ b/lib/assertions/is-false.test.js @@ -17,12 +17,12 @@ describe("assert.isFalse", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isFalse] Expected true to be false" + "[assert.isFalse] Expected true to be false", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isFalse"); return true; - } + }, ); }); @@ -37,7 +37,7 @@ describe("assert.isFalse", function () { assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isFalse"); return true; - } + }, ); }); @@ -52,7 +52,7 @@ describe("assert.isFalse", function () { assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isFalse"); return true; - } + }, ); }); @@ -65,12 +65,12 @@ describe("assert.isFalse", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isFalse] Expected NaN to be false" + "[assert.isFalse] Expected NaN to be false", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isFalse"); return true; - } + }, ); }); @@ -83,12 +83,12 @@ describe("assert.isFalse", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isFalse] Expected null to be false" + "[assert.isFalse] Expected null to be false", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isFalse"); return true; - } + }, ); }); @@ -101,12 +101,12 @@ describe("assert.isFalse", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isFalse] Expected undefined to be false" + "[assert.isFalse] Expected undefined to be false", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isFalse"); return true; - } + }, ); }); @@ -121,12 +121,12 @@ describe("assert.isFalse", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.isFalse] ${message}: Expected true to be false` + `[assert.isFalse] ${message}: Expected true to be false`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isFalse"); return true; - } + }, ); }); }); @@ -141,12 +141,12 @@ describe("refute.isFalse", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.isFalse] Expected false to not be false" + "[refute.isFalse] Expected false to not be false", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isFalse"); return true; - } + }, ); }); @@ -185,12 +185,12 @@ describe("refute.isFalse", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[refute.isFalse] ${message}: Expected false to not be false` + `[refute.isFalse] ${message}: Expected false to not be false`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isFalse"); return true; - } + }, ); }); }); diff --git a/lib/assertions/is-float-32-array.test.js b/lib/assertions/is-float-32-array.test.js index 3bfd86d..90cb4a6 100644 --- a/lib/assertions/is-float-32-array.test.js +++ b/lib/assertions/is-float-32-array.test.js @@ -22,13 +22,13 @@ describe("assert.isFloat32Array", function () { assert.equal( error.message, `[assert.isFloat32Array] Expected ${inspect( - actual - )} to be a Float32Array` + actual, + )} to be a Float32Array`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isFloat32Array"); return true; - } + }, ); }); @@ -41,12 +41,12 @@ describe("assert.isFloat32Array", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isFloat32Array] Expected [] to be a Float32Array" + "[assert.isFloat32Array] Expected [] to be a Float32Array", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isFloat32Array"); return true; - } + }, ); }); @@ -59,12 +59,12 @@ describe("assert.isFloat32Array", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isFloat32Array] Expected {} to be a Float32Array" + "[assert.isFloat32Array] Expected {} to be a Float32Array", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isFloat32Array"); return true; - } + }, ); }); @@ -77,12 +77,12 @@ describe("assert.isFloat32Array", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isFloat32Array] Expected [Arguments] {} to be a Float32Array" + "[assert.isFloat32Array] Expected [Arguments] {} to be a Float32Array", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isFloat32Array"); return true; - } + }, ); }); @@ -99,13 +99,13 @@ describe("assert.isFloat32Array", function () { assert.equal( error.message, `[assert.isFloat32Array] ${message}: Expected ${inspect( - actual - )} to be a Float32Array` + actual, + )} to be a Float32Array`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isFloat32Array"); return true; - } + }, ); }); }); @@ -123,13 +123,13 @@ describe("refute.isFloat32Array", function () { assert.equal( error.message, `[refute.isFloat32Array] Expected ${inspect( - actual - )} not to be a Float32Array` + actual, + )} not to be a Float32Array`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isFloat32Array"); return true; - } + }, ); }); @@ -162,13 +162,13 @@ describe("refute.isFloat32Array", function () { assert.equal( error.message, `[refute.isFloat32Array] ${message}: Expected ${inspect( - actual - )} not to be a Float32Array` + actual, + )} not to be a Float32Array`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isFloat32Array"); return true; - } + }, ); }); }); diff --git a/lib/assertions/is-float-64-array.test.js b/lib/assertions/is-float-64-array.test.js index ff8cf6d..7197ab3 100644 --- a/lib/assertions/is-float-64-array.test.js +++ b/lib/assertions/is-float-64-array.test.js @@ -18,13 +18,13 @@ describe("assert.isFloat64Array", function () { assert.equal( error.message, `[assert.isFloat64Array] Expected ${inspect( - actual - )} to be a Float64Array` + actual, + )} to be a Float64Array`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isFloat64Array"); return true; - } + }, ); }); @@ -41,12 +41,12 @@ describe("assert.isFloat64Array", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isFloat64Array] Expected [] to be a Float64Array" + "[assert.isFloat64Array] Expected [] to be a Float64Array", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isFloat64Array"); return true; - } + }, ); }); @@ -59,12 +59,12 @@ describe("assert.isFloat64Array", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isFloat64Array] Expected {} to be a Float64Array" + "[assert.isFloat64Array] Expected {} to be a Float64Array", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isFloat64Array"); return true; - } + }, ); }); @@ -77,12 +77,12 @@ describe("assert.isFloat64Array", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isFloat64Array] Expected [Arguments] {} to be a Float64Array" + "[assert.isFloat64Array] Expected [Arguments] {} to be a Float64Array", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isFloat64Array"); return true; - } + }, ); }); @@ -99,13 +99,13 @@ describe("assert.isFloat64Array", function () { assert.equal( error.message, `[assert.isFloat64Array] ${message}: Expected ${inspect( - actual - )} to be a Float64Array` + actual, + )} to be a Float64Array`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isFloat64Array"); return true; - } + }, ); }); }); @@ -127,13 +127,13 @@ describe("refute.isFloat64Array", function () { assert.equal( error.message, `[refute.isFloat64Array] Expected ${inspect( - actual - )} not to be a Float64Array` + actual, + )} not to be a Float64Array`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isFloat64Array"); return true; - } + }, ); }); @@ -162,13 +162,13 @@ describe("refute.isFloat64Array", function () { assert.equal( error.message, `[refute.isFloat64Array] ${message}: Expected ${inspect( - actual - )} not to be a Float64Array` + actual, + )} not to be a Float64Array`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isFloat64Array"); return true; - } + }, ); }); }); diff --git a/lib/assertions/is-function.test.js b/lib/assertions/is-function.test.js index c18305a..0a73f60 100644 --- a/lib/assertions/is-function.test.js +++ b/lib/assertions/is-function.test.js @@ -20,12 +20,12 @@ describe("assert.isFunction", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isFunction] '[object Object]' ('object') expected to be function" + "[assert.isFunction] '[object Object]' ('object') expected to be function", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isFunction"); return true; - } + }, ); }); it("should fail with custom message", function () { @@ -39,12 +39,12 @@ describe("assert.isFunction", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.isFunction] ${message}: '[object Object]' ('object') expected to be function` + `[assert.isFunction] ${message}: '[object Object]' ('object') expected to be function`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isFunction"); return true; - } + }, ); }); }); @@ -59,12 +59,12 @@ describe("refute.isFunction", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.isFunction] 'function noop() {}' expected not to be function" + "[refute.isFunction] 'function noop() {}' expected not to be function", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isFunction"); return true; - } + }, ); }); @@ -82,12 +82,12 @@ describe("refute.isFunction", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[refute.isFunction] ${message}: 'function noop() {}' expected not to be function` + `[refute.isFunction] ${message}: 'function noop() {}' expected not to be function`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isFunction"); return true; - } + }, ); }); }); diff --git a/lib/assertions/is-infinity.test.js b/lib/assertions/is-infinity.test.js index 38c2977..11d0b76 100644 --- a/lib/assertions/is-infinity.test.js +++ b/lib/assertions/is-infinity.test.js @@ -18,12 +18,12 @@ describe("assert.isInfinity", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isInfinity] Expected -Infinity to be Infinity" + "[assert.isInfinity] Expected -Infinity to be Infinity", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isInfinity"); return true; - } + }, ); }); @@ -36,12 +36,12 @@ describe("assert.isInfinity", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isInfinity] Expected NaN to be Infinity" + "[assert.isInfinity] Expected NaN to be Infinity", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isInfinity"); return true; - } + }, ); }); @@ -54,12 +54,12 @@ describe("assert.isInfinity", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isInfinity] Expected [] to be Infinity" + "[assert.isInfinity] Expected [] to be Infinity", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isInfinity"); return true; - } + }, ); }); @@ -72,12 +72,12 @@ describe("assert.isInfinity", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isInfinity] Expected {} to be Infinity" + "[assert.isInfinity] Expected {} to be Infinity", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isInfinity"); return true; - } + }, ); }); @@ -90,12 +90,12 @@ describe("assert.isInfinity", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isInfinity] Expected [Arguments] {} to be Infinity" + "[assert.isInfinity] Expected [Arguments] {} to be Infinity", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isInfinity"); return true; - } + }, ); }); @@ -110,12 +110,12 @@ describe("assert.isInfinity", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.isInfinity] ${message}: Expected -Infinity to be Infinity` + `[assert.isInfinity] ${message}: Expected -Infinity to be Infinity`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isInfinity"); return true; - } + }, ); }); }); @@ -130,12 +130,12 @@ describe("refute.isInfinity", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.isInfinity] Expected Infinity not to be Infinity" + "[refute.isInfinity] Expected Infinity not to be Infinity", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isInfinity"); return true; - } + }, ); }); @@ -170,12 +170,12 @@ describe("refute.isInfinity", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[refute.isInfinity] ${message}: Expected Infinity not to be Infinity` + `[refute.isInfinity] ${message}: Expected Infinity not to be Infinity`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isInfinity"); return true; - } + }, ); }); }); diff --git a/lib/assertions/is-int-16-array.test.js b/lib/assertions/is-int-16-array.test.js index 2d59d7c..b2f9872 100644 --- a/lib/assertions/is-int-16-array.test.js +++ b/lib/assertions/is-int-16-array.test.js @@ -18,13 +18,13 @@ describe("assert.isInt16Array", function () { assert.equal( error.message, `[assert.isInt16Array] Expected ${inspect( - actual - )} to be an Int16Array` + actual, + )} to be an Int16Array`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isInt16Array"); return true; - } + }, ); }); @@ -44,13 +44,13 @@ describe("assert.isInt16Array", function () { assert.equal( error.message, `[assert.isInt16Array] Expected ${inspect( - actual - )} to be an Int16Array` + actual, + )} to be an Int16Array`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isInt16Array"); return true; - } + }, ); }); @@ -63,12 +63,12 @@ describe("assert.isInt16Array", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isInt16Array] Expected [] to be an Int16Array" + "[assert.isInt16Array] Expected [] to be an Int16Array", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isInt16Array"); return true; - } + }, ); }); @@ -81,12 +81,12 @@ describe("assert.isInt16Array", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isInt16Array] Expected {} to be an Int16Array" + "[assert.isInt16Array] Expected {} to be an Int16Array", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isInt16Array"); return true; - } + }, ); }); @@ -99,12 +99,12 @@ describe("assert.isInt16Array", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isInt16Array] Expected [Arguments] {} to be an Int16Array" + "[assert.isInt16Array] Expected [Arguments] {} to be an Int16Array", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isInt16Array"); return true; - } + }, ); }); @@ -119,12 +119,12 @@ describe("assert.isInt16Array", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.isInt16Array] ${message}: Expected [Arguments] {} to be an Int16Array` + `[assert.isInt16Array] ${message}: Expected [Arguments] {} to be an Int16Array`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isInt16Array"); return true; - } + }, ); }); }); @@ -146,13 +146,13 @@ describe("refute.isInt16Array", function () { assert.equal( error.message, `[refute.isInt16Array] Expected ${inspect( - actual - )} not to be an Int16Array` + actual, + )} not to be an Int16Array`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isInt16Array"); return true; - } + }, ); }); @@ -185,13 +185,13 @@ describe("refute.isInt16Array", function () { assert.equal( error.message, `[refute.isInt16Array] ${message}: Expected ${inspect( - actual - )} not to be an Int16Array` + actual, + )} not to be an Int16Array`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isInt16Array"); return true; - } + }, ); }); }); diff --git a/lib/assertions/is-int-32-array.test.js b/lib/assertions/is-int-32-array.test.js index 500d811..c65f4c0 100644 --- a/lib/assertions/is-int-32-array.test.js +++ b/lib/assertions/is-int-32-array.test.js @@ -18,13 +18,13 @@ describe("assert.isInt32Array", function () { assert.equal( error.message, `[assert.isInt32Array] Expected ${inspect( - actual - )} to be an Int32Array` + actual, + )} to be an Int32Array`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isInt32Array"); return true; - } + }, ); }); @@ -40,13 +40,13 @@ describe("assert.isInt32Array", function () { assert.equal( error.message, `[assert.isInt32Array] Expected ${inspect( - actual - )} to be an Int32Array` + actual, + )} to be an Int32Array`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isInt32Array"); return true; - } + }, ); }); @@ -63,12 +63,12 @@ describe("assert.isInt32Array", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isInt32Array] Expected [] to be an Int32Array" + "[assert.isInt32Array] Expected [] to be an Int32Array", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isInt32Array"); return true; - } + }, ); }); @@ -81,12 +81,12 @@ describe("assert.isInt32Array", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isInt32Array] Expected {} to be an Int32Array" + "[assert.isInt32Array] Expected {} to be an Int32Array", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isInt32Array"); return true; - } + }, ); }); @@ -99,12 +99,12 @@ describe("assert.isInt32Array", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isInt32Array] Expected [Arguments] {} to be an Int32Array" + "[assert.isInt32Array] Expected [Arguments] {} to be an Int32Array", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isInt32Array"); return true; - } + }, ); }); @@ -119,12 +119,12 @@ describe("assert.isInt32Array", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.isInt32Array] ${message}: Expected [Arguments] {} to be an Int32Array` + `[assert.isInt32Array] ${message}: Expected [Arguments] {} to be an Int32Array`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isInt32Array"); return true; - } + }, ); }); }); @@ -150,13 +150,13 @@ describe("refute.isInt32Array", function () { assert.equal( error.message, `[refute.isInt32Array] Expected ${inspect( - actual - )} not to be an Int32Array` + actual, + )} not to be an Int32Array`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isInt32Array"); return true; - } + }, ); }); @@ -185,13 +185,13 @@ describe("refute.isInt32Array", function () { assert.equal( error.message, `[refute.isInt32Array] ${message}: Expected ${inspect( - actual - )} not to be an Int32Array` + actual, + )} not to be an Int32Array`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isInt32Array"); return true; - } + }, ); }); }); diff --git a/lib/assertions/is-int-8-array.test.js b/lib/assertions/is-int-8-array.test.js index c5457ca..feb7b0d 100644 --- a/lib/assertions/is-int-8-array.test.js +++ b/lib/assertions/is-int-8-array.test.js @@ -21,12 +21,12 @@ describe("assert.isInt8Array", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.isInt8Array] Expected ${inspect(actual)} to be an Int8Array` + `[assert.isInt8Array] Expected ${inspect(actual)} to be an Int8Array`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isInt8Array"); return true; - } + }, ); }); @@ -41,12 +41,12 @@ describe("assert.isInt8Array", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.isInt8Array] Expected ${inspect(actual)} to be an Int8Array` + `[assert.isInt8Array] Expected ${inspect(actual)} to be an Int8Array`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isInt8Array"); return true; - } + }, ); }); @@ -59,12 +59,12 @@ describe("assert.isInt8Array", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isInt8Array] Expected [] to be an Int8Array" + "[assert.isInt8Array] Expected [] to be an Int8Array", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isInt8Array"); return true; - } + }, ); }); @@ -77,12 +77,12 @@ describe("assert.isInt8Array", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isInt8Array] Expected {} to be an Int8Array" + "[assert.isInt8Array] Expected {} to be an Int8Array", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isInt8Array"); return true; - } + }, ); }); @@ -95,12 +95,12 @@ describe("assert.isInt8Array", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isInt8Array] Expected [Arguments] {} to be an Int8Array" + "[assert.isInt8Array] Expected [Arguments] {} to be an Int8Array", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isInt8Array"); return true; - } + }, ); }); @@ -115,12 +115,12 @@ describe("assert.isInt8Array", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.isInt8Array] ${message}: Expected [Arguments] {} to be an Int8Array` + `[assert.isInt8Array] ${message}: Expected [Arguments] {} to be an Int8Array`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isInt8Array"); return true; - } + }, ); }); }); @@ -138,13 +138,13 @@ describe("refute.isInt8Array", function () { assert.equal( error.message, `[refute.isInt8Array] Expected ${inspect( - actual - )} not to be an Int8Array` + actual, + )} not to be an Int8Array`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isInt8Array"); return true; - } + }, ); }); @@ -181,13 +181,13 @@ describe("refute.isInt8Array", function () { assert.equal( error.message, `[refute.isInt8Array] ${message}: Expected ${inspect( - actual - )} not to be an Int8Array` + actual, + )} not to be an Int8Array`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isInt8Array"); return true; - } + }, ); }); }); diff --git a/lib/assertions/is-intl-collator.test.js b/lib/assertions/is-intl-collator.test.js index 2e8b235..c91859a 100644 --- a/lib/assertions/is-intl-collator.test.js +++ b/lib/assertions/is-intl-collator.test.js @@ -19,12 +19,12 @@ describe("assert.isIntlCollator", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isIntlCollator] Expected 'apple pie' to be an Intl.Collator" + "[assert.isIntlCollator] Expected 'apple pie' to be an Intl.Collator", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isIntlCollator"); return true; - } + }, ); }); @@ -37,12 +37,12 @@ describe("assert.isIntlCollator", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isIntlCollator] Expected [] to be an Intl.Collator" + "[assert.isIntlCollator] Expected [] to be an Intl.Collator", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isIntlCollator"); return true; - } + }, ); }); @@ -55,12 +55,12 @@ describe("assert.isIntlCollator", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isIntlCollator] Expected {} to be an Intl.Collator" + "[assert.isIntlCollator] Expected {} to be an Intl.Collator", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isIntlCollator"); return true; - } + }, ); }); @@ -73,12 +73,12 @@ describe("assert.isIntlCollator", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isIntlCollator] Expected [Arguments] {} to be an Intl.Collator" + "[assert.isIntlCollator] Expected [Arguments] {} to be an Intl.Collator", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isIntlCollator"); return true; - } + }, ); }); @@ -93,12 +93,12 @@ describe("assert.isIntlCollator", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.isIntlCollator] ${message}: Expected 'apple pie' to be an Intl.Collator` + `[assert.isIntlCollator] ${message}: Expected 'apple pie' to be an Intl.Collator`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isIntlCollator"); return true; - } + }, ); }); }); @@ -116,13 +116,13 @@ describe("refute.isIntlCollator", function () { assert.equal( error.message, `[refute.isIntlCollator] Expected ${inspect( - object - )} not to be an Intl.Collator` + object, + )} not to be an Intl.Collator`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isIntlCollator"); return true; - } + }, ); }); @@ -155,13 +155,13 @@ describe("refute.isIntlCollator", function () { assert.equal( error.message, `[refute.isIntlCollator] ${message}: Expected ${inspect( - object - )} not to be an Intl.Collator` + object, + )} not to be an Intl.Collator`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isIntlCollator"); return true; - } + }, ); }); }); diff --git a/lib/assertions/is-intl-date-time-format.test.js b/lib/assertions/is-intl-date-time-format.test.js index 530053e..44addf5 100644 --- a/lib/assertions/is-intl-date-time-format.test.js +++ b/lib/assertions/is-intl-date-time-format.test.js @@ -19,12 +19,12 @@ describe("assert.isIntlDateTimeFormat", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isIntlDateTimeFormat] Expected 'apple pie' to be an Intl.DateTimeFormat" + "[assert.isIntlDateTimeFormat] Expected 'apple pie' to be an Intl.DateTimeFormat", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isIntlDateTimeFormat"); return true; - } + }, ); }); @@ -37,12 +37,12 @@ describe("assert.isIntlDateTimeFormat", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isIntlDateTimeFormat] Expected [] to be an Intl.DateTimeFormat" + "[assert.isIntlDateTimeFormat] Expected [] to be an Intl.DateTimeFormat", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isIntlDateTimeFormat"); return true; - } + }, ); }); @@ -55,12 +55,12 @@ describe("assert.isIntlDateTimeFormat", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isIntlDateTimeFormat] Expected {} to be an Intl.DateTimeFormat" + "[assert.isIntlDateTimeFormat] Expected {} to be an Intl.DateTimeFormat", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isIntlDateTimeFormat"); return true; - } + }, ); }); @@ -73,12 +73,12 @@ describe("assert.isIntlDateTimeFormat", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isIntlDateTimeFormat] Expected [Arguments] {} to be an Intl.DateTimeFormat" + "[assert.isIntlDateTimeFormat] Expected [Arguments] {} to be an Intl.DateTimeFormat", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isIntlDateTimeFormat"); return true; - } + }, ); }); @@ -93,12 +93,12 @@ describe("assert.isIntlDateTimeFormat", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.isIntlDateTimeFormat] ${message}: Expected 'apple pie' to be an Intl.DateTimeFormat` + `[assert.isIntlDateTimeFormat] ${message}: Expected 'apple pie' to be an Intl.DateTimeFormat`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isIntlDateTimeFormat"); return true; - } + }, ); }); }); @@ -116,13 +116,13 @@ describe("refute.isIntlDateTimeFormat", function () { assert.equal( error.message, `[refute.isIntlDateTimeFormat] Expected ${inspect( - object - )} not to be an Intl.DateTimeFormat` + object, + )} not to be an Intl.DateTimeFormat`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isIntlDateTimeFormat"); return true; - } + }, ); }); @@ -155,13 +155,13 @@ describe("refute.isIntlDateTimeFormat", function () { assert.equal( error.message, `[refute.isIntlDateTimeFormat] ${message}: Expected ${inspect( - object - )} not to be an Intl.DateTimeFormat` + object, + )} not to be an Intl.DateTimeFormat`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isIntlDateTimeFormat"); return true; - } + }, ); }); }); diff --git a/lib/assertions/is-intl-number-format.test.js b/lib/assertions/is-intl-number-format.test.js index f9cc507..43ee274 100644 --- a/lib/assertions/is-intl-number-format.test.js +++ b/lib/assertions/is-intl-number-format.test.js @@ -19,12 +19,12 @@ describe("assert.isIntlNumberFormat", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isIntlNumberFormat] Expected 'apple pie' to be an Intl.NumberFormat" + "[assert.isIntlNumberFormat] Expected 'apple pie' to be an Intl.NumberFormat", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isIntlNumberFormat"); return true; - } + }, ); }); @@ -37,12 +37,12 @@ describe("assert.isIntlNumberFormat", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isIntlNumberFormat] Expected [] to be an Intl.NumberFormat" + "[assert.isIntlNumberFormat] Expected [] to be an Intl.NumberFormat", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isIntlNumberFormat"); return true; - } + }, ); }); @@ -55,12 +55,12 @@ describe("assert.isIntlNumberFormat", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isIntlNumberFormat] Expected {} to be an Intl.NumberFormat" + "[assert.isIntlNumberFormat] Expected {} to be an Intl.NumberFormat", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isIntlNumberFormat"); return true; - } + }, ); }); @@ -73,12 +73,12 @@ describe("assert.isIntlNumberFormat", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isIntlNumberFormat] Expected [Arguments] {} to be an Intl.NumberFormat" + "[assert.isIntlNumberFormat] Expected [Arguments] {} to be an Intl.NumberFormat", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isIntlNumberFormat"); return true; - } + }, ); }); @@ -93,12 +93,12 @@ describe("assert.isIntlNumberFormat", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.isIntlNumberFormat] ${message}: Expected 'apple pie' to be an Intl.NumberFormat` + `[assert.isIntlNumberFormat] ${message}: Expected 'apple pie' to be an Intl.NumberFormat`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isIntlNumberFormat"); return true; - } + }, ); }); }); @@ -115,13 +115,13 @@ describe("refute.isIntlNumberFormat", function () { assert.equal( error.message, `[refute.isIntlNumberFormat] Expected ${inspect( - object - )} not to be an Intl.NumberFormat` + object, + )} not to be an Intl.NumberFormat`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isIntlNumberFormat"); return true; - } + }, ); }); @@ -153,13 +153,13 @@ describe("refute.isIntlNumberFormat", function () { assert.equal( error.message, `[refute.isIntlNumberFormat] ${message}: Expected ${inspect( - object - )} not to be an Intl.NumberFormat` + object, + )} not to be an Intl.NumberFormat`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isIntlNumberFormat"); return true; - } + }, ); }); }); diff --git a/lib/assertions/is-map.test.js b/lib/assertions/is-map.test.js index 5c85ee9..a73f7a2 100644 --- a/lib/assertions/is-map.test.js +++ b/lib/assertions/is-map.test.js @@ -61,7 +61,7 @@ describe("isMap factory", function () { it("is '${customMessage}Expected ${actual} to be a Map'", function () { assert.equal( this.options.assertMessage, - "${customMessage}Expected ${actual} to be a Map" + "${customMessage}Expected ${actual} to be a Map", ); }); }); @@ -70,7 +70,7 @@ describe("isMap factory", function () { it("is '${customMessage}Expected ${actual} not to be a Map'", function () { assert.equal( this.options.refuteMessage, - "${customMessage}Expected ${actual} not to be a Map" + "${customMessage}Expected ${actual} not to be a Map", ); }); }); diff --git a/lib/assertions/is-nan.test.js b/lib/assertions/is-nan.test.js index a6ee922..85873a8 100644 --- a/lib/assertions/is-nan.test.js +++ b/lib/assertions/is-nan.test.js @@ -23,7 +23,7 @@ describe("assert.isNaN", function () { assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isNaN"); return true; - } + }, ); }); @@ -36,12 +36,12 @@ describe("assert.isNaN", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isNaN] Expected undefined to be NaN" + "[assert.isNaN] Expected undefined to be NaN", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isNaN"); return true; - } + }, ); }); @@ -54,12 +54,12 @@ describe("assert.isNaN", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isNaN] Expected Infinity to be NaN" + "[assert.isNaN] Expected Infinity to be NaN", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isNaN"); return true; - } + }, ); }); @@ -72,12 +72,12 @@ describe("assert.isNaN", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isNaN] Expected -Infinity to be NaN" + "[assert.isNaN] Expected -Infinity to be NaN", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isNaN"); return true; - } + }, ); }); @@ -92,7 +92,7 @@ describe("assert.isNaN", function () { assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isNaN"); return true; - } + }, ); }); @@ -107,7 +107,7 @@ describe("assert.isNaN", function () { assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isNaN"); return true; - } + }, ); }); @@ -120,12 +120,12 @@ describe("assert.isNaN", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isNaN] Expected 'apple pie' to be NaN" + "[assert.isNaN] Expected 'apple pie' to be NaN", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isNaN"); return true; - } + }, ); }); @@ -138,12 +138,12 @@ describe("assert.isNaN", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isNaN] Expected [Function: noop] to be NaN" + "[assert.isNaN] Expected [Function: noop] to be NaN", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isNaN"); return true; - } + }, ); }); @@ -158,7 +158,7 @@ describe("assert.isNaN", function () { assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isNaN"); return true; - } + }, ); }); @@ -173,7 +173,7 @@ describe("assert.isNaN", function () { assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isNaN"); return true; - } + }, ); }); @@ -186,12 +186,12 @@ describe("assert.isNaN", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isNaN] Expected [Arguments] {} to be NaN" + "[assert.isNaN] Expected [Arguments] {} to be NaN", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isNaN"); return true; - } + }, ); }); @@ -206,12 +206,12 @@ describe("assert.isNaN", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.isNaN] ${message}: Expected null to be NaN` + `[assert.isNaN] ${message}: Expected null to be NaN`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isNaN"); return true; - } + }, ); }); }); @@ -228,7 +228,7 @@ describe("refute.isNaN", function () { assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isNaN"); return true; - } + }, ); }); @@ -287,12 +287,12 @@ describe("refute.isNaN", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[refute.isNaN] ${message}: Expected not to be NaN` + `[refute.isNaN] ${message}: Expected not to be NaN`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isNaN"); return true; - } + }, ); }); }); diff --git a/lib/assertions/is-negative-infinity.test.js b/lib/assertions/is-negative-infinity.test.js index 3b62d7f..797362a 100644 --- a/lib/assertions/is-negative-infinity.test.js +++ b/lib/assertions/is-negative-infinity.test.js @@ -18,12 +18,12 @@ describe("assert.isNegativeInfinity", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isNegativeInfinity] Expected Infinity to be -Infinity" + "[assert.isNegativeInfinity] Expected Infinity to be -Infinity", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isNegativeInfinity"); return true; - } + }, ); }); @@ -36,12 +36,12 @@ describe("assert.isNegativeInfinity", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isNegativeInfinity] Expected NaN to be -Infinity" + "[assert.isNegativeInfinity] Expected NaN to be -Infinity", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isNegativeInfinity"); return true; - } + }, ); }); @@ -54,12 +54,12 @@ describe("assert.isNegativeInfinity", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isNegativeInfinity] Expected [] to be -Infinity" + "[assert.isNegativeInfinity] Expected [] to be -Infinity", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isNegativeInfinity"); return true; - } + }, ); }); @@ -72,12 +72,12 @@ describe("assert.isNegativeInfinity", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isNegativeInfinity] Expected {} to be -Infinity" + "[assert.isNegativeInfinity] Expected {} to be -Infinity", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isNegativeInfinity"); return true; - } + }, ); }); @@ -90,12 +90,12 @@ describe("assert.isNegativeInfinity", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isNegativeInfinity] Expected [Arguments] {} to be -Infinity" + "[assert.isNegativeInfinity] Expected [Arguments] {} to be -Infinity", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isNegativeInfinity"); return true; - } + }, ); }); @@ -110,12 +110,12 @@ describe("assert.isNegativeInfinity", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.isNegativeInfinity] ${message}: Expected Infinity to be -Infinity` + `[assert.isNegativeInfinity] ${message}: Expected Infinity to be -Infinity`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isNegativeInfinity"); return true; - } + }, ); }); }); @@ -130,12 +130,12 @@ describe("refute.isNegativeInfinity", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.isNegativeInfinity] Expected -Infinity not to be -Infinity" + "[refute.isNegativeInfinity] Expected -Infinity not to be -Infinity", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isNegativeInfinity"); return true; - } + }, ); }); @@ -170,12 +170,12 @@ describe("refute.isNegativeInfinity", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[refute.isNegativeInfinity] ${message}: Expected -Infinity not to be -Infinity` + `[refute.isNegativeInfinity] ${message}: Expected -Infinity not to be -Infinity`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isNegativeInfinity"); return true; - } + }, ); }); }); diff --git a/lib/assertions/is-null.test.js b/lib/assertions/is-null.test.js index 1d8fbb9..1f0415e 100644 --- a/lib/assertions/is-null.test.js +++ b/lib/assertions/is-null.test.js @@ -21,12 +21,12 @@ describe("assert.isNull", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isNull] Expected undefined to be null" + "[assert.isNull] Expected undefined to be null", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isNull"); return true; - } + }, ); }); @@ -41,7 +41,7 @@ describe("assert.isNull", function () { assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isNull"); return true; - } + }, ); }); @@ -54,12 +54,12 @@ describe("assert.isNull", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isNull] Expected false to be null" + "[assert.isNull] Expected false to be null", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isNull"); return true; - } + }, ); }); @@ -74,7 +74,7 @@ describe("assert.isNull", function () { assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isNull"); return true; - } + }, ); }); @@ -87,12 +87,12 @@ describe("assert.isNull", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isNull] Expected [Function: noop] to be null" + "[assert.isNull] Expected [Function: noop] to be null", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isNull"); return true; - } + }, ); }); @@ -107,7 +107,7 @@ describe("assert.isNull", function () { assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isNull"); return true; - } + }, ); }); @@ -122,7 +122,7 @@ describe("assert.isNull", function () { assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isNull"); return true; - } + }, ); }); @@ -135,12 +135,12 @@ describe("assert.isNull", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isNull] Expected [Arguments] {} to be null" + "[assert.isNull] Expected [Arguments] {} to be null", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isNull"); return true; - } + }, ); }); @@ -155,12 +155,12 @@ describe("assert.isNull", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.isNull] ${message}: Expected undefined to be null` + `[assert.isNull] ${message}: Expected undefined to be null`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isNull"); return true; - } + }, ); }); }); @@ -177,7 +177,7 @@ describe("refute.isNull", function () { assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isNull"); return true; - } + }, ); }); @@ -224,12 +224,12 @@ describe("refute.isNull", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[refute.isNull] ${message}: Expected not to be null` + `[refute.isNull] ${message}: Expected not to be null`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isNull"); return true; - } + }, ); }); }); diff --git a/lib/assertions/is-number.test.js b/lib/assertions/is-number.test.js index 4138e61..e02086f 100644 --- a/lib/assertions/is-number.test.js +++ b/lib/assertions/is-number.test.js @@ -37,12 +37,12 @@ describe("assert.isNumber", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isNumber] Expected NaN ('number') to be a non-NaN number" + "[assert.isNumber] Expected NaN ('number') to be a non-NaN number", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isNumber"); return true; - } + }, ); }); @@ -55,12 +55,12 @@ describe("assert.isNumber", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isNumber] Expected 'apple pie' ('string') to be a non-NaN number" + "[assert.isNumber] Expected 'apple pie' ('string') to be a non-NaN number", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isNumber"); return true; - } + }, ); }); @@ -73,12 +73,12 @@ describe("assert.isNumber", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isNumber] Expected [Function: noop] ('function') to be a non-NaN number" + "[assert.isNumber] Expected [Function: noop] ('function') to be a non-NaN number", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isNumber"); return true; - } + }, ); }); @@ -91,12 +91,12 @@ describe("assert.isNumber", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isNumber] Expected [Arguments] {} ('object') to be a non-NaN number" + "[assert.isNumber] Expected [Arguments] {} ('object') to be a non-NaN number", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isNumber"); return true; - } + }, ); }); @@ -109,12 +109,12 @@ describe("assert.isNumber", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isNumber] Expected null ('object') to be a non-NaN number" + "[assert.isNumber] Expected null ('object') to be a non-NaN number", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isNumber"); return true; - } + }, ); }); @@ -129,12 +129,12 @@ describe("assert.isNumber", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.isNumber] ${message}: Expected NaN ('number') to be a non-NaN number` + `[assert.isNumber] ${message}: Expected NaN ('number') to be a non-NaN number`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isNumber"); return true; - } + }, ); }); }); @@ -149,12 +149,12 @@ describe("refute.isNumber", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.isNumber] Expected 42 to be NaN or a non-number value" + "[refute.isNumber] Expected 42 to be NaN or a non-number value", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isNumber"); return true; - } + }, ); }); @@ -167,12 +167,12 @@ describe("refute.isNumber", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.isNumber] Expected Infinity to be NaN or a non-number value" + "[refute.isNumber] Expected Infinity to be NaN or a non-number value", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isNumber"); return true; - } + }, ); }); @@ -185,12 +185,12 @@ describe("refute.isNumber", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.isNumber] Expected -Infinity to be NaN or a non-number value" + "[refute.isNumber] Expected -Infinity to be NaN or a non-number value", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isNumber"); return true; - } + }, ); }); @@ -203,12 +203,12 @@ describe("refute.isNumber", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.isNumber] Expected 1.7976931348623157e+308 to be NaN or a non-number value" + "[refute.isNumber] Expected 1.7976931348623157e+308 to be NaN or a non-number value", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isNumber"); return true; - } + }, ); }); @@ -221,12 +221,12 @@ describe("refute.isNumber", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.isNumber] Expected 5e-324 to be NaN or a non-number value" + "[refute.isNumber] Expected 5e-324 to be NaN or a non-number value", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isNumber"); return true; - } + }, ); }); @@ -261,12 +261,12 @@ describe("refute.isNumber", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[refute.isNumber] ${message}: Expected 42 to be NaN or a non-number value` + `[refute.isNumber] ${message}: Expected 42 to be NaN or a non-number value`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isNumber"); return true; - } + }, ); }); }); diff --git a/lib/assertions/is-object.test.js b/lib/assertions/is-object.test.js index e47e613..283ab04 100644 --- a/lib/assertions/is-object.test.js +++ b/lib/assertions/is-object.test.js @@ -20,12 +20,12 @@ describe("assert.isObject", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isObject] [Function: noop] ('function') expected to be object and not null" + "[assert.isObject] [Function: noop] ('function') expected to be object and not null", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isObject"); return true; - } + }, ); }); @@ -38,12 +38,12 @@ describe("assert.isObject", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isObject] null ('object') expected to be object and not null" + "[assert.isObject] null ('object') expected to be object and not null", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isObject"); return true; - } + }, ); }); @@ -58,12 +58,12 @@ describe("assert.isObject", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.isObject] ${message}: [Function: noop] ('function') expected to be object and not null` + `[assert.isObject] ${message}: [Function: noop] ('function') expected to be object and not null`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isObject"); return true; - } + }, ); }); }); @@ -78,12 +78,12 @@ describe("refute.isObject", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.isObject] {} expected to be null or not an object" + "[refute.isObject] {} expected to be null or not an object", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isObject"); return true; - } + }, ); }); it("should pass for Function", function () { @@ -104,12 +104,12 @@ describe("refute.isObject", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[refute.isObject] ${message}: {} expected to be null or not an object` + `[refute.isObject] ${message}: {} expected to be null or not an object`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isObject"); return true; - } + }, ); }); }); diff --git a/lib/assertions/is-promise.test.js b/lib/assertions/is-promise.test.js index 1af7b6a..85abdf4 100644 --- a/lib/assertions/is-promise.test.js +++ b/lib/assertions/is-promise.test.js @@ -21,12 +21,12 @@ describe("assert.isPromise", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isPromise] Expected 'apple pie' to be a Promise" + "[assert.isPromise] Expected 'apple pie' to be a Promise", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isPromise"); return true; - } + }, ); }); @@ -39,12 +39,12 @@ describe("assert.isPromise", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isPromise] Expected [] to be a Promise" + "[assert.isPromise] Expected [] to be a Promise", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isPromise"); return true; - } + }, ); }); @@ -57,12 +57,12 @@ describe("assert.isPromise", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isPromise] Expected [Function: noop] to be a Promise" + "[assert.isPromise] Expected [Function: noop] to be a Promise", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isPromise"); return true; - } + }, ); }); @@ -75,12 +75,12 @@ describe("assert.isPromise", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isPromise] Expected {} to be a Promise" + "[assert.isPromise] Expected {} to be a Promise", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isPromise"); return true; - } + }, ); }); @@ -93,12 +93,12 @@ describe("assert.isPromise", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isPromise] Expected [Arguments] {} to be a Promise" + "[assert.isPromise] Expected [Arguments] {} to be a Promise", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isPromise"); return true; - } + }, ); }); @@ -112,12 +112,12 @@ describe("assert.isPromise", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.isPromise] ${message}: Expected 'apple pie' to be a Promise` + `[assert.isPromise] ${message}: Expected 'apple pie' to be a Promise`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isPromise"); return true; - } + }, ); }); }); @@ -132,12 +132,12 @@ describe("refute.isPromise", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.isPromise] Expected Promise { 'apple pie' } not to be a Promise" + "[refute.isPromise] Expected Promise { 'apple pie' } not to be a Promise", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isPromise"); return true; - } + }, ); }); @@ -172,12 +172,12 @@ describe("refute.isPromise", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[refute.isPromise] ${message}: Expected Promise { 'apple pie' } not to be a Promise` + `[refute.isPromise] ${message}: Expected Promise { 'apple pie' } not to be a Promise`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isPromise"); return true; - } + }, ); }); }); diff --git a/lib/assertions/is-range-error.test.js b/lib/assertions/is-range-error.test.js index f5b2136..eb464c6 100644 --- a/lib/assertions/is-range-error.test.js +++ b/lib/assertions/is-range-error.test.js @@ -14,12 +14,12 @@ describe("assert.isRangeError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isRangeError] Expected Error to be a RangeError" + "[assert.isRangeError] Expected Error to be a RangeError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isRangeError"); return true; - } + }, ); }); @@ -32,12 +32,12 @@ describe("assert.isRangeError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isRangeError] Expected EvalError to be a RangeError" + "[assert.isRangeError] Expected EvalError to be a RangeError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isRangeError"); return true; - } + }, ); }); @@ -54,12 +54,12 @@ describe("assert.isRangeError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isRangeError] Expected ReferenceError to be a RangeError" + "[assert.isRangeError] Expected ReferenceError to be a RangeError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isRangeError"); return true; - } + }, ); }); @@ -72,12 +72,12 @@ describe("assert.isRangeError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isRangeError] Expected SyntaxError to be a RangeError" + "[assert.isRangeError] Expected SyntaxError to be a RangeError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isRangeError"); return true; - } + }, ); }); @@ -90,12 +90,12 @@ describe("assert.isRangeError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isRangeError] Expected TypeError to be a RangeError" + "[assert.isRangeError] Expected TypeError to be a RangeError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isRangeError"); return true; - } + }, ); }); @@ -108,12 +108,12 @@ describe("assert.isRangeError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isRangeError] Expected URIError to be a RangeError" + "[assert.isRangeError] Expected URIError to be a RangeError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isRangeError"); return true; - } + }, ); }); @@ -126,12 +126,12 @@ describe("assert.isRangeError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isRangeError] Expected 'apple pie' to be a RangeError" + "[assert.isRangeError] Expected 'apple pie' to be a RangeError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isRangeError"); return true; - } + }, ); }); @@ -144,12 +144,12 @@ describe("assert.isRangeError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isRangeError] Expected [] to be a RangeError" + "[assert.isRangeError] Expected [] to be a RangeError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isRangeError"); return true; - } + }, ); }); @@ -162,12 +162,12 @@ describe("assert.isRangeError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isRangeError] Expected {} to be a RangeError" + "[assert.isRangeError] Expected {} to be a RangeError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isRangeError"); return true; - } + }, ); }); @@ -180,12 +180,12 @@ describe("assert.isRangeError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isRangeError] Expected [Arguments] {} to be a RangeError" + "[assert.isRangeError] Expected [Arguments] {} to be a RangeError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isRangeError"); return true; - } + }, ); }); @@ -200,12 +200,12 @@ describe("assert.isRangeError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.isRangeError] ${message}: Expected Error to be a RangeError` + `[assert.isRangeError] ${message}: Expected Error to be a RangeError`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isRangeError"); return true; - } + }, ); }); }); @@ -228,12 +228,12 @@ describe("refute.isRangeError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.isRangeError] Expected RangeError not to be a RangeError" + "[refute.isRangeError] Expected RangeError not to be a RangeError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isRangeError"); return true; - } + }, ); }); @@ -280,12 +280,12 @@ describe("refute.isRangeError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[refute.isRangeError] ${message}: Expected RangeError not to be a RangeError` + `[refute.isRangeError] ${message}: Expected RangeError not to be a RangeError`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isRangeError"); return true; - } + }, ); }); }); diff --git a/lib/assertions/is-reference-error.test.js b/lib/assertions/is-reference-error.test.js index deee218..d076441 100644 --- a/lib/assertions/is-reference-error.test.js +++ b/lib/assertions/is-reference-error.test.js @@ -14,12 +14,12 @@ describe("assert.isReferenceError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isReferenceError] Expected Error to be a ReferenceError" + "[assert.isReferenceError] Expected Error to be a ReferenceError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isReferenceError"); return true; - } + }, ); }); @@ -32,12 +32,12 @@ describe("assert.isReferenceError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isReferenceError] Expected EvalError to be a ReferenceError" + "[assert.isReferenceError] Expected EvalError to be a ReferenceError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isReferenceError"); return true; - } + }, ); }); @@ -50,12 +50,12 @@ describe("assert.isReferenceError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isReferenceError] Expected RangeError to be a ReferenceError" + "[assert.isReferenceError] Expected RangeError to be a ReferenceError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isReferenceError"); return true; - } + }, ); }); @@ -72,12 +72,12 @@ describe("assert.isReferenceError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isReferenceError] Expected SyntaxError to be a ReferenceError" + "[assert.isReferenceError] Expected SyntaxError to be a ReferenceError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isReferenceError"); return true; - } + }, ); }); @@ -90,12 +90,12 @@ describe("assert.isReferenceError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isReferenceError] Expected TypeError to be a ReferenceError" + "[assert.isReferenceError] Expected TypeError to be a ReferenceError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isReferenceError"); return true; - } + }, ); }); @@ -108,12 +108,12 @@ describe("assert.isReferenceError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isReferenceError] Expected URIError to be a ReferenceError" + "[assert.isReferenceError] Expected URIError to be a ReferenceError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isReferenceError"); return true; - } + }, ); }); @@ -126,12 +126,12 @@ describe("assert.isReferenceError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isReferenceError] Expected 'apple pie' to be a ReferenceError" + "[assert.isReferenceError] Expected 'apple pie' to be a ReferenceError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isReferenceError"); return true; - } + }, ); }); @@ -144,12 +144,12 @@ describe("assert.isReferenceError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isReferenceError] Expected [] to be a ReferenceError" + "[assert.isReferenceError] Expected [] to be a ReferenceError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isReferenceError"); return true; - } + }, ); }); @@ -162,12 +162,12 @@ describe("assert.isReferenceError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isReferenceError] Expected {} to be a ReferenceError" + "[assert.isReferenceError] Expected {} to be a ReferenceError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isReferenceError"); return true; - } + }, ); }); @@ -180,12 +180,12 @@ describe("assert.isReferenceError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isReferenceError] Expected [Arguments] {} to be a ReferenceError" + "[assert.isReferenceError] Expected [Arguments] {} to be a ReferenceError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isReferenceError"); return true; - } + }, ); }); @@ -200,12 +200,12 @@ describe("assert.isReferenceError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.isReferenceError] ${message}: Expected Error to be a ReferenceError` + `[assert.isReferenceError] ${message}: Expected Error to be a ReferenceError`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isReferenceError"); return true; - } + }, ); }); }); @@ -232,12 +232,12 @@ describe("refute.isReferenceError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.isReferenceError] Expected ReferenceError not to be a ReferenceError" + "[refute.isReferenceError] Expected ReferenceError not to be a ReferenceError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isReferenceError"); return true; - } + }, ); }); @@ -280,12 +280,12 @@ describe("refute.isReferenceError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[refute.isReferenceError] ${message}: Expected ReferenceError not to be a ReferenceError` + `[refute.isReferenceError] ${message}: Expected ReferenceError not to be a ReferenceError`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isReferenceError"); return true; - } + }, ); }); }); diff --git a/lib/assertions/is-reg-exp.test.js b/lib/assertions/is-reg-exp.test.js index fbd1df8..728fe8d 100644 --- a/lib/assertions/is-reg-exp.test.js +++ b/lib/assertions/is-reg-exp.test.js @@ -23,11 +23,11 @@ describe("assert.isRegExp", function () { assert.equal(error.name, "AssertionError"); assert.equal( error.message, - "[assert.isRegExp] Expected 'apple pie' to be a RegExp" + "[assert.isRegExp] Expected 'apple pie' to be a RegExp", ); assert.equal(error.operator, "assert.isRegExp"); return true; - } + }, ); }); @@ -41,11 +41,11 @@ describe("assert.isRegExp", function () { assert.equal(error.name, "AssertionError"); assert.equal( error.message, - "[assert.isRegExp] Expected [Arguments] {} to be a RegExp" + "[assert.isRegExp] Expected [Arguments] {} to be a RegExp", ); assert.equal(error.operator, "assert.isRegExp"); return true; - } + }, ); }); @@ -59,11 +59,11 @@ describe("assert.isRegExp", function () { assert.equal(error.name, "AssertionError"); assert.equal( error.message, - "[assert.isRegExp] Nope: Expected {} to be a RegExp" + "[assert.isRegExp] Nope: Expected {} to be a RegExp", ); assert.equal(error.operator, "assert.isRegExp"); return true; - } + }, ); }); @@ -77,11 +77,11 @@ describe("assert.isRegExp", function () { assert.equal(error.name, "AssertionError"); assert.equal( error.message, - "[assert.isRegExp] Expected [] to be a RegExp" + "[assert.isRegExp] Expected [] to be a RegExp", ); assert.equal(error.operator, "assert.isRegExp"); return true; - } + }, ); }); }); diff --git a/lib/assertions/is-set.test.js b/lib/assertions/is-set.test.js index 0fb76f2..d2cb77c 100644 --- a/lib/assertions/is-set.test.js +++ b/lib/assertions/is-set.test.js @@ -18,12 +18,12 @@ describe("assert.isSet", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isSet] Expected 'apple pie' to be a Set" + "[assert.isSet] Expected 'apple pie' to be a Set", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isSet"); return true; - } + }, ); }); @@ -38,7 +38,7 @@ describe("assert.isSet", function () { assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isSet"); return true; - } + }, ); }); @@ -53,7 +53,7 @@ describe("assert.isSet", function () { assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isSet"); return true; - } + }, ); }); @@ -66,12 +66,12 @@ describe("assert.isSet", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isSet] Expected [Arguments] {} to be a Set" + "[assert.isSet] Expected [Arguments] {} to be a Set", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isSet"); return true; - } + }, ); }); @@ -86,12 +86,12 @@ describe("assert.isSet", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.isSet] ${message}: Expected [Arguments] {} to be a Set` + `[assert.isSet] ${message}: Expected [Arguments] {} to be a Set`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isSet"); return true; - } + }, ); }); }); diff --git a/lib/assertions/is-string.test.js b/lib/assertions/is-string.test.js index cf238b2..8c3a3e1 100644 --- a/lib/assertions/is-string.test.js +++ b/lib/assertions/is-string.test.js @@ -17,12 +17,12 @@ describe("isString", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isString] Expected {} ('object') to be string" + "[assert.isString] Expected {} ('object') to be string", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isString"); return true; - } + }, ); }); @@ -35,12 +35,12 @@ describe("isString", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isString] Expected [] ('object') to be string" + "[assert.isString] Expected [] ('object') to be string", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isString"); return true; - } + }, ); }); @@ -53,12 +53,12 @@ describe("isString", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isString] Expected 34 ('number') to be string" + "[assert.isString] Expected 34 ('number') to be string", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isString"); return true; - } + }, ); }); @@ -71,12 +71,12 @@ describe("isString", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isString] Expected true ('boolean') to be string" + "[assert.isString] Expected true ('boolean') to be string", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isString"); return true; - } + }, ); }); }); diff --git a/lib/assertions/is-symbol.test.js b/lib/assertions/is-symbol.test.js index 4c8a954..7b15666 100644 --- a/lib/assertions/is-symbol.test.js +++ b/lib/assertions/is-symbol.test.js @@ -18,12 +18,12 @@ describe("assert.isSymbol", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isSymbol] Expected 'apple pie' to be a Symbol" + "[assert.isSymbol] Expected 'apple pie' to be a Symbol", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isSymbol"); return true; - } + }, ); }); @@ -36,12 +36,12 @@ describe("assert.isSymbol", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isSymbol] Expected [] to be a Symbol" + "[assert.isSymbol] Expected [] to be a Symbol", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isSymbol"); return true; - } + }, ); }); @@ -54,12 +54,12 @@ describe("assert.isSymbol", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isSymbol] Expected {} to be a Symbol" + "[assert.isSymbol] Expected {} to be a Symbol", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isSymbol"); return true; - } + }, ); }); @@ -72,12 +72,12 @@ describe("assert.isSymbol", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isSymbol] Expected [Arguments] {} to be a Symbol" + "[assert.isSymbol] Expected [Arguments] {} to be a Symbol", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isSymbol"); return true; - } + }, ); }); @@ -92,12 +92,12 @@ describe("assert.isSymbol", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.isSymbol] ${message}: Expected 'apple pie' to be a Symbol` + `[assert.isSymbol] ${message}: Expected 'apple pie' to be a Symbol`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isSymbol"); return true; - } + }, ); }); }); @@ -112,12 +112,12 @@ describe("refute.isSymbol", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.isSymbol] Expected Symbol(apple pie) not to be a Symbol" + "[refute.isSymbol] Expected Symbol(apple pie) not to be a Symbol", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isSymbol"); return true; - } + }, ); }); @@ -132,12 +132,12 @@ describe("refute.isSymbol", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[refute.isSymbol] ${message}: Expected Symbol(apple pie) not to be a Symbol` + `[refute.isSymbol] ${message}: Expected Symbol(apple pie) not to be a Symbol`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isSymbol"); return true; - } + }, ); }); diff --git a/lib/assertions/is-syntax-error.test.js b/lib/assertions/is-syntax-error.test.js index 1818518..2050df6 100644 --- a/lib/assertions/is-syntax-error.test.js +++ b/lib/assertions/is-syntax-error.test.js @@ -14,12 +14,12 @@ describe("assert.isSyntaxError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isSyntaxError] Expected Error to be a SyntaxError" + "[assert.isSyntaxError] Expected Error to be a SyntaxError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isSyntaxError"); return true; - } + }, ); }); @@ -32,12 +32,12 @@ describe("assert.isSyntaxError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isSyntaxError] Expected EvalError to be a SyntaxError" + "[assert.isSyntaxError] Expected EvalError to be a SyntaxError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isSyntaxError"); return true; - } + }, ); }); @@ -50,12 +50,12 @@ describe("assert.isSyntaxError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isSyntaxError] Expected RangeError to be a SyntaxError" + "[assert.isSyntaxError] Expected RangeError to be a SyntaxError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isSyntaxError"); return true; - } + }, ); }); @@ -68,12 +68,12 @@ describe("assert.isSyntaxError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isSyntaxError] Expected ReferenceError to be a SyntaxError" + "[assert.isSyntaxError] Expected ReferenceError to be a SyntaxError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isSyntaxError"); return true; - } + }, ); }); @@ -90,12 +90,12 @@ describe("assert.isSyntaxError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isSyntaxError] Expected TypeError to be a SyntaxError" + "[assert.isSyntaxError] Expected TypeError to be a SyntaxError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isSyntaxError"); return true; - } + }, ); }); @@ -108,12 +108,12 @@ describe("assert.isSyntaxError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isSyntaxError] Expected URIError to be a SyntaxError" + "[assert.isSyntaxError] Expected URIError to be a SyntaxError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isSyntaxError"); return true; - } + }, ); }); @@ -126,12 +126,12 @@ describe("assert.isSyntaxError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isSyntaxError] Expected 'apple pie' to be a SyntaxError" + "[assert.isSyntaxError] Expected 'apple pie' to be a SyntaxError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isSyntaxError"); return true; - } + }, ); }); @@ -144,12 +144,12 @@ describe("assert.isSyntaxError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isSyntaxError] Expected [] to be a SyntaxError" + "[assert.isSyntaxError] Expected [] to be a SyntaxError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isSyntaxError"); return true; - } + }, ); }); @@ -162,12 +162,12 @@ describe("assert.isSyntaxError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isSyntaxError] Expected {} to be a SyntaxError" + "[assert.isSyntaxError] Expected {} to be a SyntaxError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isSyntaxError"); return true; - } + }, ); }); @@ -180,12 +180,12 @@ describe("assert.isSyntaxError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isSyntaxError] Expected [Arguments] {} to be a SyntaxError" + "[assert.isSyntaxError] Expected [Arguments] {} to be a SyntaxError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isSyntaxError"); return true; - } + }, ); }); @@ -200,12 +200,12 @@ describe("assert.isSyntaxError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.isSyntaxError] ${message}: Expected Error to be a SyntaxError` + `[assert.isSyntaxError] ${message}: Expected Error to be a SyntaxError`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isSyntaxError"); return true; - } + }, ); }); }); @@ -236,12 +236,12 @@ describe("refute.isSyntaxError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.isSyntaxError] Expected SyntaxError not to be a SyntaxError" + "[refute.isSyntaxError] Expected SyntaxError not to be a SyntaxError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isSyntaxError"); return true; - } + }, ); }); @@ -280,12 +280,12 @@ describe("refute.isSyntaxError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[refute.isSyntaxError] ${message}: Expected SyntaxError not to be a SyntaxError` + `[refute.isSyntaxError] ${message}: Expected SyntaxError not to be a SyntaxError`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isSyntaxError"); return true; - } + }, ); }); }); diff --git a/lib/assertions/is-true.test.js b/lib/assertions/is-true.test.js index e3da0ba..8361885 100644 --- a/lib/assertions/is-true.test.js +++ b/lib/assertions/is-true.test.js @@ -73,7 +73,7 @@ describe("isTrue", function () { assert.equal(actual.code, "ERR_ASSERTION"); assert.equal( actual.message, - "[assert.isTrue] Expected to receive at least 1 argument(s)" + "[assert.isTrue] Expected to receive at least 1 argument(s)", ); }); }); diff --git a/lib/assertions/is-type-error.test.js b/lib/assertions/is-type-error.test.js index f3f6afe..fe45434 100644 --- a/lib/assertions/is-type-error.test.js +++ b/lib/assertions/is-type-error.test.js @@ -14,12 +14,12 @@ describe("assert.isTypeError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isTypeError] Expected Error to be a TypeError" + "[assert.isTypeError] Expected Error to be a TypeError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isTypeError"); return true; - } + }, ); }); @@ -32,12 +32,12 @@ describe("assert.isTypeError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isTypeError] Expected EvalError to be a TypeError" + "[assert.isTypeError] Expected EvalError to be a TypeError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isTypeError"); return true; - } + }, ); }); @@ -50,12 +50,12 @@ describe("assert.isTypeError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isTypeError] Expected RangeError to be a TypeError" + "[assert.isTypeError] Expected RangeError to be a TypeError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isTypeError"); return true; - } + }, ); }); @@ -68,12 +68,12 @@ describe("assert.isTypeError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isTypeError] Expected ReferenceError to be a TypeError" + "[assert.isTypeError] Expected ReferenceError to be a TypeError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isTypeError"); return true; - } + }, ); }); @@ -86,12 +86,12 @@ describe("assert.isTypeError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isTypeError] Expected SyntaxError to be a TypeError" + "[assert.isTypeError] Expected SyntaxError to be a TypeError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isTypeError"); return true; - } + }, ); }); @@ -108,12 +108,12 @@ describe("assert.isTypeError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isTypeError] Expected URIError to be a TypeError" + "[assert.isTypeError] Expected URIError to be a TypeError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isTypeError"); return true; - } + }, ); }); @@ -126,12 +126,12 @@ describe("assert.isTypeError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isTypeError] Expected 'apple pie' to be a TypeError" + "[assert.isTypeError] Expected 'apple pie' to be a TypeError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isTypeError"); return true; - } + }, ); }); @@ -144,12 +144,12 @@ describe("assert.isTypeError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isTypeError] Expected [] to be a TypeError" + "[assert.isTypeError] Expected [] to be a TypeError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isTypeError"); return true; - } + }, ); }); @@ -162,12 +162,12 @@ describe("assert.isTypeError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isTypeError] Expected {} to be a TypeError" + "[assert.isTypeError] Expected {} to be a TypeError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isTypeError"); return true; - } + }, ); }); @@ -180,12 +180,12 @@ describe("assert.isTypeError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isTypeError] Expected [Arguments] {} to be a TypeError" + "[assert.isTypeError] Expected [Arguments] {} to be a TypeError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isTypeError"); return true; - } + }, ); }); @@ -200,12 +200,12 @@ describe("assert.isTypeError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.isTypeError] ${message}: Expected Error to be a TypeError` + `[assert.isTypeError] ${message}: Expected Error to be a TypeError`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isTypeError"); return true; - } + }, ); }); }); @@ -240,12 +240,12 @@ describe("refute.isTypeError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[refute.isTypeError] Expected TypeError not to be a TypeError" + "[refute.isTypeError] Expected TypeError not to be a TypeError", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isTypeError"); return true; - } + }, ); }); @@ -280,12 +280,12 @@ describe("refute.isTypeError", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[refute.isTypeError] ${message}: Expected TypeError not to be a TypeError` + `[refute.isTypeError] ${message}: Expected TypeError not to be a TypeError`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isTypeError"); return true; - } + }, ); }); }); diff --git a/lib/assertions/is-u-int-16-array.test.js b/lib/assertions/is-u-int-16-array.test.js index c9af2c2..e8ed6ee 100644 --- a/lib/assertions/is-u-int-16-array.test.js +++ b/lib/assertions/is-u-int-16-array.test.js @@ -22,13 +22,13 @@ describe("assert.isUint16Array", function () { assert.equal( error.message, `[assert.isUint16Array] Expected ${inspect( - actual - )} to be a Uint16Array` + actual, + )} to be a Uint16Array`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isUint16Array"); return true; - } + }, ); }); @@ -44,13 +44,13 @@ describe("assert.isUint16Array", function () { assert.equal( error.message, `[assert.isUint16Array] Expected ${inspect( - actual - )} to be a Uint16Array` + actual, + )} to be a Uint16Array`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isUint16Array"); return true; - } + }, ); }); @@ -63,12 +63,12 @@ describe("assert.isUint16Array", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isUint16Array] Expected [] to be a Uint16Array" + "[assert.isUint16Array] Expected [] to be a Uint16Array", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isUint16Array"); return true; - } + }, ); }); @@ -81,12 +81,12 @@ describe("assert.isUint16Array", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isUint16Array] Expected {} to be a Uint16Array" + "[assert.isUint16Array] Expected {} to be a Uint16Array", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isUint16Array"); return true; - } + }, ); }); @@ -99,12 +99,12 @@ describe("assert.isUint16Array", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isUint16Array] Expected [Arguments] {} to be a Uint16Array" + "[assert.isUint16Array] Expected [Arguments] {} to be a Uint16Array", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isUint16Array"); return true; - } + }, ); }); @@ -118,12 +118,12 @@ describe("assert.isUint16Array", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.isUint16Array] ${message}: Expected [] to be a Uint16Array` + `[assert.isUint16Array] ${message}: Expected [] to be a Uint16Array`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isUint16Array"); return true; - } + }, ); }); }); @@ -141,13 +141,13 @@ describe("refute.isUint16Array", function () { assert.equal( error.message, `[refute.isUint16Array] Expected ${inspect( - actual - )} not to be a Uint16Array` + actual, + )} not to be a Uint16Array`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isUint16Array"); return true; - } + }, ); }); @@ -164,13 +164,13 @@ describe("refute.isUint16Array", function () { assert.equal( error.message, `[refute.isUint16Array] ${message}: Expected ${inspect( - actual - )} not to be a Uint16Array` + actual, + )} not to be a Uint16Array`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isUint16Array"); return true; - } + }, ); }); diff --git a/lib/assertions/is-u-int-32-array.test.js b/lib/assertions/is-u-int-32-array.test.js index 7ac81a7..cc50e08 100644 --- a/lib/assertions/is-u-int-32-array.test.js +++ b/lib/assertions/is-u-int-32-array.test.js @@ -22,13 +22,13 @@ describe("assert.isUint32Array", function () { assert.equal( error.message, `[assert.isUint32Array] Expected ${inspect( - actual - )} to be a Uint32Array` + actual, + )} to be a Uint32Array`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isUint32Array"); return true; - } + }, ); }); @@ -44,13 +44,13 @@ describe("assert.isUint32Array", function () { assert.equal( error.message, `[assert.isUint32Array] Expected ${inspect( - actual - )} to be a Uint32Array` + actual, + )} to be a Uint32Array`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isUint32Array"); return true; - } + }, ); }); @@ -63,12 +63,12 @@ describe("assert.isUint32Array", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isUint32Array] Expected [] to be a Uint32Array" + "[assert.isUint32Array] Expected [] to be a Uint32Array", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isUint32Array"); return true; - } + }, ); }); @@ -81,12 +81,12 @@ describe("assert.isUint32Array", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isUint32Array] Expected {} to be a Uint32Array" + "[assert.isUint32Array] Expected {} to be a Uint32Array", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isUint32Array"); return true; - } + }, ); }); @@ -99,12 +99,12 @@ describe("assert.isUint32Array", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isUint32Array] Expected [Arguments] {} to be a Uint32Array" + "[assert.isUint32Array] Expected [Arguments] {} to be a Uint32Array", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isUint32Array"); return true; - } + }, ); }); @@ -118,12 +118,12 @@ describe("assert.isUint32Array", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.isUint32Array] ${message}: Expected [] to be a Uint32Array` + `[assert.isUint32Array] ${message}: Expected [] to be a Uint32Array`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isUint32Array"); return true; - } + }, ); }); }); @@ -141,13 +141,13 @@ describe("refute.isUint32Array", function () { assert.equal( error.message, `[refute.isUint32Array] Expected ${inspect( - actual - )} not to be a Uint32Array` + actual, + )} not to be a Uint32Array`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isUint32Array"); return true; - } + }, ); }); @@ -164,13 +164,13 @@ describe("refute.isUint32Array", function () { assert.equal( error.message, `[refute.isUint32Array] ${message}: Expected ${inspect( - actual - )} not to be a Uint32Array` + actual, + )} not to be a Uint32Array`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isUint32Array"); return true; - } + }, ); }); diff --git a/lib/assertions/is-u-int-8-array.test.js b/lib/assertions/is-u-int-8-array.test.js index beb506e..b2a081a 100644 --- a/lib/assertions/is-u-int-8-array.test.js +++ b/lib/assertions/is-u-int-8-array.test.js @@ -21,12 +21,14 @@ describe("assert.isUint8Array", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.isUint8Array] Expected ${inspect(actual)} to be a Uint8Array` + `[assert.isUint8Array] Expected ${inspect( + actual, + )} to be a Uint8Array`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isUint8Array"); return true; - } + }, ); }); @@ -41,12 +43,14 @@ describe("assert.isUint8Array", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.isUint8Array] Expected ${inspect(actual)} to be a Uint8Array` + `[assert.isUint8Array] Expected ${inspect( + actual, + )} to be a Uint8Array`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isUint8Array"); return true; - } + }, ); }); @@ -59,12 +63,12 @@ describe("assert.isUint8Array", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isUint8Array] Expected [] to be a Uint8Array" + "[assert.isUint8Array] Expected [] to be a Uint8Array", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isUint8Array"); return true; - } + }, ); }); @@ -77,12 +81,12 @@ describe("assert.isUint8Array", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isUint8Array] Expected {} to be a Uint8Array" + "[assert.isUint8Array] Expected {} to be a Uint8Array", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isUint8Array"); return true; - } + }, ); }); @@ -95,12 +99,12 @@ describe("assert.isUint8Array", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isUint8Array] Expected [Arguments] {} to be a Uint8Array" + "[assert.isUint8Array] Expected [Arguments] {} to be a Uint8Array", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isUint8Array"); return true; - } + }, ); }); @@ -114,12 +118,12 @@ describe("assert.isUint8Array", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.isUint8Array] ${message}: Expected [] to be a Uint8Array` + `[assert.isUint8Array] ${message}: Expected [] to be a Uint8Array`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isUint8Array"); return true; - } + }, ); }); }); @@ -137,13 +141,13 @@ describe("refute.isUint8Array", function () { assert.equal( error.message, `[refute.isUint8Array] Expected ${inspect( - actual - )} not to be a Uint8Array` + actual, + )} not to be a Uint8Array`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isUint8Array"); return true; - } + }, ); }); @@ -160,13 +164,13 @@ describe("refute.isUint8Array", function () { assert.equal( error.message, `[refute.isUint8Array] ${message}: Expected ${inspect( - actual - )} not to be a Uint8Array` + actual, + )} not to be a Uint8Array`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.isUint8Array"); return true; - } + }, ); }); diff --git a/lib/assertions/is-u-int-8-clamped-array.test.js b/lib/assertions/is-u-int-8-clamped-array.test.js index b6e6c98..013f5e4 100644 --- a/lib/assertions/is-u-int-8-clamped-array.test.js +++ b/lib/assertions/is-u-int-8-clamped-array.test.js @@ -60,7 +60,7 @@ describe("isUint8ClampedArray factory", function () { it("is '${customMessage}Expected ${actual} to be a Uint8ClampedArray'", function () { assert.equal( this.options.assertMessage, - "${customMessage}Expected ${actual} to be a Uint8ClampedArray" + "${customMessage}Expected ${actual} to be a Uint8ClampedArray", ); }); }); @@ -69,7 +69,7 @@ describe("isUint8ClampedArray factory", function () { it("is '${customMessage}Expected ${actual} not to be a Uint8ClampedArray'", function () { assert.equal( this.options.refuteMessage, - "${customMessage}Expected ${actual} not to be a Uint8ClampedArray" + "${customMessage}Expected ${actual} not to be a Uint8ClampedArray", ); }); }); diff --git a/lib/assertions/is-undefined.test.js b/lib/assertions/is-undefined.test.js index 3e6e933..d93614a 100644 --- a/lib/assertions/is-undefined.test.js +++ b/lib/assertions/is-undefined.test.js @@ -17,12 +17,12 @@ describe("assert.isUndefined", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isUndefined] Expected [] ('object') to be undefined" + "[assert.isUndefined] Expected [] ('object') to be undefined", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isUndefined"); return true; - } + }, ); }); it("should fail for boolean", function () { @@ -34,12 +34,12 @@ describe("assert.isUndefined", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isUndefined] Expected true ('boolean') to be undefined" + "[assert.isUndefined] Expected true ('boolean') to be undefined", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isUndefined"); return true; - } + }, ); }); it("should fail for function", function () { @@ -52,12 +52,12 @@ describe("assert.isUndefined", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.isUndefined] Expected ${anonymousFunction} ('function') to be undefined` + `[assert.isUndefined] Expected ${anonymousFunction} ('function') to be undefined`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isUndefined"); return true; - } + }, ); }); it("should fail for null", function () { @@ -69,12 +69,12 @@ describe("assert.isUndefined", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isUndefined] Expected null ('object') to be undefined" + "[assert.isUndefined] Expected null ('object') to be undefined", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isUndefined"); return true; - } + }, ); }); it("should fail for number", function () { @@ -86,12 +86,12 @@ describe("assert.isUndefined", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isUndefined] Expected 42 ('number') to be undefined" + "[assert.isUndefined] Expected 42 ('number') to be undefined", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isUndefined"); return true; - } + }, ); }); it("should fail for object", function () { @@ -103,12 +103,12 @@ describe("assert.isUndefined", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isUndefined] Expected {} ('object') to be undefined" + "[assert.isUndefined] Expected {} ('object') to be undefined", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isUndefined"); return true; - } + }, ); }); it("should fail for string with custom message", function () { @@ -120,12 +120,12 @@ describe("assert.isUndefined", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - "[assert.isUndefined] fails: Expected 'Test' ('string') to be undefined" + "[assert.isUndefined] fails: Expected 'Test' ('string') to be undefined", ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.isUndefined"); return true; - } + }, ); }); it("should handle objects without prototype", function () { diff --git a/lib/assertions/is-uri-error.test.js b/lib/assertions/is-uri-error.test.js index 8ab2626..22ae359 100644 --- a/lib/assertions/is-uri-error.test.js +++ b/lib/assertions/is-uri-error.test.js @@ -64,7 +64,7 @@ describe("isURIError factory", function () { it("is '${customMessage}Expected ${actual} to be a URIError'", function () { assert.equal( this.options.assertMessage, - "${customMessage}Expected ${actual} to be a URIError" + "${customMessage}Expected ${actual} to be a URIError", ); }); }); @@ -73,7 +73,7 @@ describe("isURIError factory", function () { it("is '${customMessage}Expected ${actual} not to be a URIError'", function () { assert.equal( this.options.refuteMessage, - "${customMessage}Expected ${actual} not to be a URIError" + "${customMessage}Expected ${actual} not to be a URIError", ); }); }); diff --git a/lib/assertions/is-weak-map.test.js b/lib/assertions/is-weak-map.test.js index cc9cf2f..bddfb50 100644 --- a/lib/assertions/is-weak-map.test.js +++ b/lib/assertions/is-weak-map.test.js @@ -64,7 +64,7 @@ describe("isWeakMap factory", function () { it("is '${customMessage}Expected ${actual} to be a WeakMap'", function () { assert.equal( this.options.assertMessage, - "${customMessage}Expected ${actual} to be a WeakMap" + "${customMessage}Expected ${actual} to be a WeakMap", ); }); }); @@ -73,7 +73,7 @@ describe("isWeakMap factory", function () { it("is '${customMessage}Expected ${actual} not to be a WeakMap'", function () { assert.equal( this.options.refuteMessage, - "${customMessage}Expected ${actual} not to be a WeakMap" + "${customMessage}Expected ${actual} not to be a WeakMap", ); }); }); diff --git a/lib/assertions/is-weak-set.test.js b/lib/assertions/is-weak-set.test.js index 1b829b2..f793f98 100644 --- a/lib/assertions/is-weak-set.test.js +++ b/lib/assertions/is-weak-set.test.js @@ -64,7 +64,7 @@ describe("isWeakSet factory", function () { it("is '${customMessage}Expected ${actual} to be a WeakSet'", function () { assert.equal( this.options.assertMessage, - "${customMessage}Expected ${actual} to be a WeakSet" + "${customMessage}Expected ${actual} to be a WeakSet", ); }); }); @@ -73,7 +73,7 @@ describe("isWeakSet factory", function () { it("is '${customMessage}Expected ${actual} not to be a WeakSet'", function () { assert.equal( this.options.refuteMessage, - "${customMessage}Expected ${actual} not to be a WeakSet" + "${customMessage}Expected ${actual} not to be a WeakSet", ); }); }); diff --git a/lib/assertions/json.test.js b/lib/assertions/json.test.js index bc9cec7..ee90113 100644 --- a/lib/assertions/json.test.js +++ b/lib/assertions/json.test.js @@ -33,7 +33,7 @@ describe("json factory", function () { it("returns the result of calling samsam.deepEqual with the parsed string and the matcher", function () { assert.equal( this.options.assert('{"key":"value"}', { key: "value" }), - this.fakeSamsam.deepEqual.returnValues[0] + this.fakeSamsam.deepEqual.returnValues[0], ); }); }); @@ -43,12 +43,12 @@ describe("json factory", function () { this.options.assert.call( this.fakeReferee, "{something:not parsable}", - {} + {}, ); assert( this.fakeReferee.fail.calledOnceWithExactly, - "${customMessage}Expected ${actual} to be valid JSON" + "${customMessage}Expected ${actual} to be valid JSON", ); }); }); @@ -58,7 +58,7 @@ describe("json factory", function () { it("is '${customMessage}Expected ${actual} to equal ${expected}'", function () { assert.equal( this.options.assertMessage, - "${customMessage}Expected ${actual} to equal ${expected}" + "${customMessage}Expected ${actual} to equal ${expected}", ); }); }); @@ -67,7 +67,7 @@ describe("json factory", function () { it("is '${customMessage}Expected ${actual} not to equal ${expected}'", function () { assert.equal( this.options.refuteMessage, - "${customMessage}Expected ${actual} not to equal ${expected}" + "${customMessage}Expected ${actual} not to equal ${expected}", ); }); }); @@ -111,7 +111,7 @@ describe("json factory", function () { assert.equal( JSON.stringify(result.actual), - JSON.stringify(JSON.parse(actual)) + JSON.stringify(JSON.parse(actual)), ); }); }); diff --git a/lib/assertions/keys.test.js b/lib/assertions/keys.test.js index c79182a..21f1b2c 100644 --- a/lib/assertions/keys.test.js +++ b/lib/assertions/keys.test.js @@ -50,20 +50,24 @@ describe("keys factory", function () { context("when values are special", function () { it("returns true", function () { assert( - this.options.assert({ a: -1, b: null, c: undefined }, ["a", "b", "c"]) + this.options.assert({ a: -1, b: null, c: undefined }, [ + "a", + "b", + "c", + ]), ); }); }); it("ignores prototype methods", function () { assert( - this.options.assert(new Klass({ a: 1, b: 2, c: 3 }), ["a", "b", "c"]) + this.options.assert(new Klass({ a: 1, b: 2, c: 3 }), ["a", "b", "c"]), ); }); it("allows overriding prototype methods", function () { assert( - this.options.assert(new Klass({ a: 1, methodA: 2 }), ["a", "methodA"]) + this.options.assert(new Klass({ a: 1, methodA: 2 }), ["a", "methodA"]), ); }); @@ -71,7 +75,7 @@ describe("keys factory", function () { it("returns false", function () { assert.equal( this.options.assert({ a: 1, b: 2, c: 3 }, ["a", "b"]), - false + false, ); }); }); @@ -80,7 +84,7 @@ describe("keys factory", function () { it("returns false", function () { assert.equal( this.options.assert({ a: 1, b: 2, c: 3 }, ["a", "b", "c", "d"]), - false + false, ); }); }); @@ -89,7 +93,7 @@ describe("keys factory", function () { it("returns false", function () { assert.equal( this.options.assert({ a: 1, b: 2, c: 3 }, ["a", "b", "d"]), - false + false, ); }); }); @@ -99,7 +103,7 @@ describe("keys factory", function () { it("is '${customMessage}Expected ${actualObject} to have exact keys ${expected}'", function () { assert.equal( this.options.assertMessage, - "${customMessage}Expected ${actualObject} to have exact keys ${expected}" + "${customMessage}Expected ${actualObject} to have exact keys ${expected}", ); }); }); @@ -108,7 +112,7 @@ describe("keys factory", function () { it("is '${customMessage}Expected not to have exact keys ${expected}'", function () { assert.equal( this.options.refuteMessage, - "${customMessage}Expected not to have exact keys ${expected}" + "${customMessage}Expected not to have exact keys ${expected}", ); }); }); @@ -154,7 +158,7 @@ describe("keys factory", function () { assert.equal( JSON.stringify(result.actual), - JSON.stringify(Object.keys(actual)) + JSON.stringify(Object.keys(actual)), ); }); diff --git a/lib/assertions/less.test.js b/lib/assertions/less.test.js index 233601d..c18c0b6 100644 --- a/lib/assertions/less.test.js +++ b/lib/assertions/less.test.js @@ -51,7 +51,7 @@ describe("less factory", function () { it("is '${customMessage}Expected ${actual} to be less than ${expected}'", function () { assert.equal( this.options.assertMessage, - "${customMessage}Expected ${actual} to be less than ${expected}" + "${customMessage}Expected ${actual} to be less than ${expected}", ); }); }); @@ -60,7 +60,7 @@ describe("less factory", function () { it("is '${customMessage}Expected ${actual} to be greater than or equal to ${expected}'", function () { assert.equal( this.options.refuteMessage, - "${customMessage}Expected ${actual} to be greater than or equal to ${expected}" + "${customMessage}Expected ${actual} to be greater than or equal to ${expected}", ); }); }); @@ -75,7 +75,7 @@ describe("less factory", function () { it("delegates to '../actual-and-expected-message-values'", function () { assert.equal( this.options.values, - this.fakeActualAndExpectedMessageValues + this.fakeActualAndExpectedMessageValues, ); }); }); diff --git a/lib/assertions/match-json.test.js b/lib/assertions/match-json.test.js index 642c153..35886fe 100644 --- a/lib/assertions/match-json.test.js +++ b/lib/assertions/match-json.test.js @@ -43,7 +43,7 @@ describe("matchJson factory", function () { this.options.assert('{"key":"value","and":42}', { key: "value", }), - this.fakeSamsam.match.returnValues[0] + this.fakeSamsam.match.returnValues[0], ); }); }); @@ -53,12 +53,12 @@ describe("matchJson factory", function () { this.options.assert.call( this.fakeReferee, "{something:not parsable}", - {} + {}, ); assert( this.fakeReferee.fail.calledOnceWithExactly, - "${customMessage}Expected ${actual} to be valid JSON" + "${customMessage}Expected ${actual} to be valid JSON", ); }); }); @@ -68,7 +68,7 @@ describe("matchJson factory", function () { it("is '${customMessage}Expected ${actual} to match ${expected}'", function () { assert.equal( this.options.assertMessage, - "${customMessage}Expected ${actual} to match ${expected}" + "${customMessage}Expected ${actual} to match ${expected}", ); }); }); @@ -77,7 +77,7 @@ describe("matchJson factory", function () { it("is '${customMessage}Expected ${actual} not to match ${expected}'", function () { assert.equal( this.options.refuteMessage, - "${customMessage}Expected ${actual} not to match ${expected}" + "${customMessage}Expected ${actual} not to match ${expected}", ); }); }); diff --git a/lib/assertions/match.test.js b/lib/assertions/match.test.js index 567965b..802cc8a 100644 --- a/lib/assertions/match.test.js +++ b/lib/assertions/match.test.js @@ -10,7 +10,7 @@ describe("assert.match", function () { match: sinon.fake.returns("07228bdd-f7c1-48a3-a7bc-b4c6d6d900f5"), }; this.fakeActualForMatch = sinon.fake.returns( - "52efec5b-aab3-4c14-b4cb-4b0d26fdcf56" + "52efec5b-aab3-4c14-b4cb-4b0d26fdcf56", ); this.factory = proxyquire("./match", { @@ -59,7 +59,7 @@ describe("assert.match", function () { it("is '${customMessage}${actual} expected to match ${expected}", function () { assert.equal( this.options.assertMessage, - "${customMessage}${actual} expected to match ${expected}" + "${customMessage}${actual} expected to match ${expected}", ); }); }); @@ -68,7 +68,7 @@ describe("assert.match", function () { it("is '${customMessage}${actual} expected not to match ${expected}", function () { assert.equal( this.options.refuteMessage, - "${customMessage}${actual} expected not to match ${expected}" + "${customMessage}${actual} expected not to match ${expected}", ); }); }); diff --git a/lib/assertions/near.test.js b/lib/assertions/near.test.js index c4c0f45..d594c72 100644 --- a/lib/assertions/near.test.js +++ b/lib/assertions/near.test.js @@ -44,7 +44,7 @@ describe("near factory", function () { it("is '${customMessage}Expected ${actual} to be equal to ${expected} +/- ${delta}'", function () { assert.equal( this.options.assertMessage, - "${customMessage}Expected ${actual} to be equal to ${expected} +/- ${delta}" + "${customMessage}Expected ${actual} to be equal to ${expected} +/- ${delta}", ); }); }); @@ -53,7 +53,7 @@ describe("near factory", function () { it("is '${customMessage}Expected ${actual} not to be equal to ${expected} +/- ${delta}'", function () { assert.equal( this.options.refuteMessage, - "${customMessage}Expected ${actual} not to be equal to ${expected} +/- ${delta}" + "${customMessage}Expected ${actual} not to be equal to ${expected} +/- ${delta}", ); }); }); diff --git a/lib/assertions/rejects.test.js b/lib/assertions/rejects.test.js index ef9e995..60c43b9 100644 --- a/lib/assertions/rejects.test.js +++ b/lib/assertions/rejects.test.js @@ -63,7 +63,7 @@ describe("rejects factory", function () { it("should pass for matching matcher", function () { return this.options.assert( Promise.reject({ foo: 1 }), - samsam.match.object + samsam.match.object, ); }); }); @@ -104,7 +104,7 @@ describe("rejects factory", function () { assert.equal(e.message, options.assertMessage); }); }); - } + }, ); context("when promise argument is not a promise", function () { @@ -165,10 +165,10 @@ describe("rejects factory", function () { it("should pass for non-matching matcher", function () { return this.options.refute( Promise.reject({ foo: 1 }), - samsam.match.array + samsam.match.array, ); }); - } + }, ); context("when promise argument rejects to value argument", function () { @@ -232,7 +232,7 @@ describe("rejects factory", function () { it("is '${actual} is not equal to ${expected}'", function () { assert.equal( this.options.assertMessage, - "${actual} is not equal to ${expected}" + "${actual} is not equal to ${expected}", ); }); }); @@ -241,7 +241,7 @@ describe("rejects factory", function () { it("is '${actual} is equal to ${expected}'", function () { assert.equal( this.options.refuteMessage, - "${actual} is equal to ${expected}" + "${actual} is equal to ${expected}", ); }); }); diff --git a/lib/assertions/resolves.test.js b/lib/assertions/resolves.test.js index 74e6e57..d361121 100644 --- a/lib/assertions/resolves.test.js +++ b/lib/assertions/resolves.test.js @@ -38,7 +38,7 @@ describe("resolves factory", function () { it("returns a promise", function () { var result = this.options.assert( Promise.resolve("apple pie"), - "apple pie" + "apple pie", ); assert(result instanceof Promise); @@ -66,7 +66,7 @@ describe("resolves factory", function () { it("should pass for matching matcher", function () { return this.options.assert( Promise.resolve({ foo: 1 }), - samsam.match.object + samsam.match.object, ); }); }); @@ -107,7 +107,7 @@ describe("resolves factory", function () { assert.equal(e.message, options.assertMessage); }); }); - } + }, ); context("when promise argument is not a promise", function () { @@ -127,7 +127,7 @@ describe("resolves factory", function () { assert(e instanceof Error); assert.equal( e.message, - "${0} did not resolve, it rejected instead" + "${0} did not resolve, it rejected instead", ); }); }); @@ -171,10 +171,10 @@ describe("resolves factory", function () { it("should pass for non-matching matcher", function () { return this.options.refute( Promise.resolve({ foo: 1 }), - samsam.match.array + samsam.match.array, ); }); - } + }, ); context("when promise argument resolves to value argument", function () { @@ -230,7 +230,7 @@ describe("resolves factory", function () { assert(e instanceof Error); assert.equal( e.message, - "${0} did not resolve, it rejected instead" + "${0} did not resolve, it rejected instead", ); }); }); @@ -241,7 +241,7 @@ describe("resolves factory", function () { it("is '${actual} is not equal to ${expected}'", function () { assert.equal( this.options.assertMessage, - "${actual} is not equal to ${expected}" + "${actual} is not equal to ${expected}", ); }); }); @@ -250,7 +250,7 @@ describe("resolves factory", function () { it("is '${actual} is equal to ${expected}'", function () { assert.equal( this.options.refuteMessage, - "${actual} is equal to ${expected}" + "${actual} is equal to ${expected}", ); }); }); diff --git a/lib/assertions/same.test.js b/lib/assertions/same.test.js index c530beb..9a736d3 100644 --- a/lib/assertions/same.test.js +++ b/lib/assertions/same.test.js @@ -104,7 +104,7 @@ describe("same factory", function () { it("is '${customMessage}${actual} expected to be the same object as ${expected}'", function () { assert.equal( this.options.assertMessage, - "${customMessage}${actual} expected to be the same object as ${expected}" + "${customMessage}${actual} expected to be the same object as ${expected}", ); }); }); @@ -113,7 +113,7 @@ describe("same factory", function () { it("is '${customMessage}${actual} expected not to be the same object as ${expected}'", function () { assert.equal( this.options.refuteMessage, - "${customMessage}${actual} expected not to be the same object as ${expected}" + "${customMessage}${actual} expected not to be the same object as ${expected}", ); }); }); @@ -128,7 +128,7 @@ describe("same factory", function () { it("delegates to '../actual-and-expected-message-values'", function () { assert.equal( this.options.values, - this.fakeActualAndExpectedMessageValues + this.fakeActualAndExpectedMessageValues, ); }); }); diff --git a/lib/assertions/tag-name.test.js b/lib/assertions/tag-name.test.js index 9ca4aa3..69cbca9 100644 --- a/lib/assertions/tag-name.test.js +++ b/lib/assertions/tag-name.test.js @@ -29,7 +29,7 @@ describe("tagName factory", function () { sinon.assert.calledOnce(this.options.fail); sinon.assert.calledWith( this.options.fail, - "${customMessage}Expected ${actualElement} to have tagName property" + "${customMessage}Expected ${actualElement} to have tagName property", ); }); }); @@ -57,7 +57,7 @@ describe("tagName factory", function () { it("returns true", function () { assert.equal( this.options.assert(document.createElement("li"), "li"), - true + true, ); }); }); @@ -93,7 +93,7 @@ describe("tagName factory", function () { it("is '${customMessage}Expected tagName to be ${expected} but was ${actual}'", function () { assert.equal( this.options.assertMessage, - "${customMessage}Expected tagName to be ${expected} but was ${actual}" + "${customMessage}Expected tagName to be ${expected} but was ${actual}", ); }); }); @@ -102,7 +102,7 @@ describe("tagName factory", function () { it("is '${customMessage}Expected tagName not to be ${actual}'", function () { assert.equal( this.options.refuteMessage, - "${customMessage}Expected tagName not to be ${actual}" + "${customMessage}Expected tagName not to be ${actual}", ); }); }); diff --git a/lib/create-add.js b/lib/create-add.js index d003dda..b0b8e83 100644 --- a/lib/create-add.js +++ b/lib/create-add.js @@ -8,7 +8,7 @@ var validFunctionName = /^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/; function verifyArguments(name, options) { if (typeof name !== "string" || !validFunctionName.test(name)) { throw new TypeError( - `'name' argument must be a non-empty string matching ${validFunctionName.toString()}` + `'name' argument must be a non-empty string matching ${validFunctionName.toString()}`, ); } @@ -18,7 +18,7 @@ function verifyArguments(name, options) { if (typeof options.assert !== "function" || options.assert.length === 0) { throw new TypeError( - "'assert' option must be a Function, taking at least one argument" + "'assert' option must be a Function, taking at least one argument", ); } @@ -27,14 +27,14 @@ function verifyArguments(name, options) { (typeof options.refute !== "function" || options.refute.length === 0) ) { throw new TypeError( - "'refute' option must be a Function, taking at least one argument" + "'refute' option must be a Function, taking at least one argument", ); } ["assertMessage", "refuteMessage"].forEach((m) => { if (!isValidMessageOption(options[m])) { throw new TypeError( - `'${m}' option must be a non-empty String or Function` + `'${m}' option must be a non-empty String or Function`, ); } }); @@ -84,7 +84,7 @@ function createAdd(referee) { name, options.assert, options.assert.length, - options.values + options.values, ); defineAssertion( referee, @@ -92,7 +92,7 @@ function createAdd(referee) { name, options.refute, refuteArgs, - options.values + options.values, ); // Refactor: pass this down to where it is needed, so it is not part of the public api diff --git a/lib/create-assert.js b/lib/create-assert.js index 06a4494..af127ef 100644 --- a/lib/create-assert.js +++ b/lib/create-assert.js @@ -8,7 +8,7 @@ function createAssert(referee) { if (!actual) { referee.fail( - message || `[assert] Expected ${String(actual)} to be truthy` + message || `[assert] Expected ${String(actual)} to be truthy`, ); return; } diff --git a/lib/create-async-assertion.js b/lib/create-async-assertion.js index 8894b30..3fd7f1a 100644 --- a/lib/create-async-assertion.js +++ b/lib/create-async-assertion.js @@ -21,7 +21,7 @@ function createAsyncAssertion(thenFunc, catchFunc) { var context = { resolve: resolve, reject: reject }; promise.then( applyCallback(thenFunc, context), - applyCallback(catchFunc, context) + applyCallback(catchFunc, context), ); } catch (error) { reject(error.message); diff --git a/lib/create-async-assertion.test.js b/lib/create-async-assertion.test.js index 004ad92..c73301e 100644 --- a/lib/create-async-assertion.test.js +++ b/lib/create-async-assertion.test.js @@ -28,7 +28,7 @@ describe("createAsyncAssertion", function () { var promise = func.call(context, {}, "test"); return promise.then(function () { referee.assert.isTrue( - fail.calledOnceWith("promise.then is not a function") + fail.calledOnceWith("promise.then is not a function"), ); }); }); diff --git a/lib/create-refute.js b/lib/create-refute.js index 4fd43d5..13d8da2 100644 --- a/lib/create-refute.js +++ b/lib/create-refute.js @@ -8,7 +8,7 @@ function createRefute(referee) { if (actual) { referee.fail( - message || `[refute] Expected ${String(actual)} to be falsy` + message || `[refute] Expected ${String(actual)} to be falsy`, ); return; } diff --git a/lib/create-verifier.js b/lib/create-verifier.js index 4d5e4d1..8afc055 100644 --- a/lib/create-verifier.js +++ b/lib/create-verifier.js @@ -24,7 +24,7 @@ function createVerifier(referee) { if (expected && count !== expected) { throw new Error( - `Expected assertion count to be ${expected} but was ${count}` + `Expected assertion count to be ${expected} but was ${count}`, ); } diff --git a/lib/custom-assertions.test.js b/lib/custom-assertions.test.js index 9e17f75..b66fb64 100644 --- a/lib/custom-assertions.test.js +++ b/lib/custom-assertions.test.js @@ -207,7 +207,7 @@ describe("custom assertions", function () { } catch (e) { referee.assert.equals( "[assert.custom] with args { some: 42 }", - e.message + e.message, ); } }); @@ -278,7 +278,7 @@ describe("custom assertions", function () { } catch (err) { referee.assert.equals( "[assert.custom] assertMessage from a function", - err.message + err.message, ); } }); @@ -305,7 +305,7 @@ describe("custom assertions", function () { } catch (err) { referee.assert.equals( "[assert.custom] false definitely not true", - err.message + err.message, ); } }); @@ -328,7 +328,7 @@ describe("custom assertions", function () { } catch (err) { referee.refute.equals( "[refute.custom] refuteMessage from a function", - err.message + err.message, ); } }); @@ -358,7 +358,7 @@ describe("custom assertions", function () { } catch (err) { referee.assert.equals( "[refute.custom] false definitely not true", - err.message + err.message, ); } }); diff --git a/lib/define-assertion/format.test.js b/lib/define-assertion/format.test.js index 411fcef..250faf9 100644 --- a/lib/define-assertion/format.test.js +++ b/lib/define-assertion/format.test.js @@ -7,7 +7,7 @@ var sinon = require("sinon"); describe("format", function () { beforeEach(function () { this.fakeInspect = sinon.fake.returns( - "334ddc7e-9c2e-4206-8861-9253d348c81b" + "334ddc7e-9c2e-4206-8861-9253d348c81b", ); this.format = proxyquire("./format", { diff --git a/lib/define-assertion/index.js b/lib/define-assertion/index.js index bfe669d..b551525 100644 --- a/lib/define-assertion/index.js +++ b/lib/define-assertion/index.js @@ -87,7 +87,7 @@ function defineAssertion(referee, type, name, func, minArgs, messageValues) { name, func, minArgs, - messageValues + messageValues, ); return assertion.apply(null, arguments); }; diff --git a/lib/define-assertion/interpolate-properties.js b/lib/define-assertion/interpolate-properties.js index 01efdbe..cde50a7 100644 --- a/lib/define-assertion/interpolate-properties.js +++ b/lib/define-assertion/interpolate-properties.js @@ -29,7 +29,7 @@ function interpolateProperties(referee, message, properties) { return prepareMessage(value); } return format(value); - } + }, ); } diff --git a/lib/expect.js b/lib/expect.js index 58249d0..5856992 100644 --- a/lib/expect.js +++ b/lib/expect.js @@ -34,7 +34,7 @@ expect.wrapAssertion = function wrapAssertion(assertion, expectation, referee) { } catch (e) { e.message = e.message.replace( `[${type}.${assertion}]`, - `[expect.${this.assertMode ? "" : "not."}${expectation}]` + `[expect.${this.assertMode ? "" : "not."}${expectation}]`, ); throw e; } diff --git a/lib/expect.test.js b/lib/expect.test.js index d8e2561..4754123 100644 --- a/lib/expect.test.js +++ b/lib/expect.test.js @@ -39,7 +39,7 @@ describe("expect", function () { } catch (e) { referee.assert.equals( e.message, - "[expect.toEqual] { id: 42 } expected to be equal to { bleh: 'Nah' }" + "[expect.toEqual] { id: 42 } expected to be equal to { bleh: 'Nah' }", ); } }); @@ -79,7 +79,7 @@ describe("expect", function () { } catch (e) { referee.assert.equals( e.message, - "[expect.not.toEqual] { id: 42 } expected not to be equal to { id: 42 }" + "[expect.not.toEqual] { id: 42 } expected not to be equal to { id: 42 }", ); } }); diff --git a/lib/match.test.js b/lib/match.test.js index 758d497..4c80156 100644 --- a/lib/match.test.js +++ b/lib/match.test.js @@ -36,12 +36,12 @@ describe("match", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[assert.equals] { some: 'string', foo: 1, bar: true } expected to be equal to {\n some: 'string',\n foo: 1,\n bar: { test: ${anonymousFunction}, message: 'typeOf("string")' }\n}` + `[assert.equals] { some: 'string', foo: 1, bar: true } expected to be equal to {\n some: 'string',\n foo: 1,\n bar: { test: ${anonymousFunction}, message: 'typeOf("string")' }\n}`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "assert.equals"); return true; - } + }, ); }); @@ -80,12 +80,12 @@ describe("match", function () { assert.equal(error.code, "ERR_ASSERTION"); assert.equal( error.message, - `[refute.equals] { some: 'string', foo: 1, bar: 'test' } expected not to be equal to {\n some: 'string',\n foo: 1,\n bar: { test: ${anonymousFunction}, message: 'typeOf("string")' }\n}` + `[refute.equals] { some: 'string', foo: 1, bar: 'test' } expected not to be equal to {\n some: 'string',\n foo: 1,\n bar: { test: ${anonymousFunction}, message: 'typeOf("string")' }\n}`, ); assert.equal(error.name, "AssertionError"); assert.equal(error.operator, "refute.equals"); return true; - } + }, ); }); }); diff --git a/lib/referee.test.js b/lib/referee.test.js index 23d5555..0e2ab9a 100644 --- a/lib/referee.test.js +++ b/lib/referee.test.js @@ -87,7 +87,7 @@ describe("API", function () { .filter(function (name) { return !name.startsWith("_"); }) - .sort() + .sort(), ); assert.equal(actualProperties, expectedProperties); diff --git a/lib/refute.test.js b/lib/refute.test.js index 7f455c7..a2e905d 100644 --- a/lib/refute.test.js +++ b/lib/refute.test.js @@ -17,7 +17,7 @@ describe("refute", function () { } catch (error) { referee.assert.equals( error.message, - "[refute] Expected to receive at least 1 argument(s)" + "[refute] Expected to receive at least 1 argument(s)", ); } }); @@ -50,7 +50,7 @@ describe("refute", function () { function () { referee.refute(true); }, - { message: "[refute] Expected true to be falsy" } + { message: "[refute] Expected true to be falsy" }, ); }); @@ -105,7 +105,7 @@ describe("refute", function () { } catch (e) { referee.assert.equals( e.message, - "[refute] Expected to receive at least 1 argument(s)" + "[refute] Expected to receive at least 1 argument(s)", ); } }); diff --git a/lib/test-helper/anonymous-function-string.js b/lib/test-helper/anonymous-function-string.js index fc1cf97..8399a5b 100644 --- a/lib/test-helper/anonymous-function-string.js +++ b/lib/test-helper/anonymous-function-string.js @@ -4,5 +4,5 @@ var inspect = require("util").inspect; module.exports = inspect( // eslint-disable-next-line no-empty-function - function () {} + function () {}, ); diff --git a/lib/verifier.test.js b/lib/verifier.test.js index c111cb5..b736236 100644 --- a/lib/verifier.test.js +++ b/lib/verifier.test.js @@ -101,7 +101,7 @@ describe("verifier", function () { assert.equal( error.message, - "Expected assertion count to be at least 1, but was 0" + "Expected assertion count to be at least 1, but was 0", ); }); }); diff --git a/package-lock.json b/package-lock.json index 76e3da9..d7f2c88 100644 --- a/package-lock.json +++ b/package-lock.json @@ -24,7 +24,7 @@ "mkdirp": "^1.0.3", "mocha": "^10.2.0", "nyc": "^15.1.0", - "prettier": "^2.8.3", + "prettier": "^3.1.1", "proxyquire": "^2.1.3", "sinon": "^17.0.1" } @@ -4520,15 +4520,15 @@ } }, "node_modules/prettier": { - "version": "2.8.3", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.3.tgz", - "integrity": "sha512-tJ/oJ4amDihPoufT5sM0Z1SKEuKay8LfVAMlbbhnnkvt6BUserZylqo2PN+p9KeljLr0OHa2rXHU1T8reeoTrw==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.1.1.tgz", + "integrity": "sha512-22UbSzg8luF4UuZtzgiUOfcGM8s4tjBv6dJRT7j275NXsy2jb4aJa4NNveul5x4eqlF1wuhuR2RElK71RvmVaw==", "dev": true, "bin": { - "prettier": "bin-prettier.js" + "prettier": "bin/prettier.cjs" }, "engines": { - "node": ">=10.13.0" + "node": ">=14" }, "funding": { "url": "https://github.com/prettier/prettier?sponsor=1" @@ -8638,9 +8638,9 @@ "dev": true }, "prettier": { - "version": "2.8.3", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.8.3.tgz", - "integrity": "sha512-tJ/oJ4amDihPoufT5sM0Z1SKEuKay8LfVAMlbbhnnkvt6BUserZylqo2PN+p9KeljLr0OHa2rXHU1T8reeoTrw==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.1.1.tgz", + "integrity": "sha512-22UbSzg8luF4UuZtzgiUOfcGM8s4tjBv6dJRT7j275NXsy2jb4aJa4NNveul5x4eqlF1wuhuR2RElK71RvmVaw==", "dev": true }, "process-on-spawn": { diff --git a/package.json b/package.json index 7d23971..b367bf1 100644 --- a/package.json +++ b/package.json @@ -64,7 +64,7 @@ "mkdirp": "^1.0.3", "mocha": "^10.2.0", "nyc": "^15.1.0", - "prettier": "^2.8.3", + "prettier": "^3.1.1", "proxyquire": "^2.1.3", "sinon": "^17.0.1" }