Skip to content

Commit

Permalink
Fix formatting related assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
mantoni committed Oct 2, 2020
1 parent 61f8522 commit ed71199
Show file tree
Hide file tree
Showing 12 changed files with 36 additions and 38 deletions.
8 changes: 4 additions & 4 deletions lib/assertions/is-float-32-array.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe("assert.isFloat32Array", function() {
assert.equal(error.code, "ERR_ASSERTION");
assert.equal(
error.message,
"[assert.isFloat32Array] Expected Float64Array [ 0, 0 ] to be a Float32Array"
"[assert.isFloat32Array] Expected Float64Array(2) [ 0, 0 ] to be a Float32Array"
);
assert.equal(error.name, "AssertionError");
assert.equal(error.operator, "assert.isFloat32Array");
Expand Down Expand Up @@ -94,7 +94,7 @@ describe("assert.isFloat32Array", function() {
error.message,
"[assert.isFloat32Array] " +
message +
": Expected Float64Array [ 0, 0 ] to be a Float32Array"
": Expected Float64Array(2) [ 0, 0 ] to be a Float32Array"
);
assert.equal(error.name, "AssertionError");
assert.equal(error.operator, "assert.isFloat32Array");
Expand All @@ -114,7 +114,7 @@ describe("refute.isFloat32Array", function() {
assert.equal(error.code, "ERR_ASSERTION");
assert.equal(
error.message,
"[refute.isFloat32Array] Expected Float32Array [ 0, 0 ] not to be a Float32Array"
"[refute.isFloat32Array] Expected Float32Array(2) [ 0, 0 ] not to be a Float32Array"
);
assert.equal(error.name, "AssertionError");
assert.equal(error.operator, "refute.isFloat32Array");
Expand Down Expand Up @@ -152,7 +152,7 @@ describe("refute.isFloat32Array", function() {
error.message,
"[refute.isFloat32Array] " +
message +
": Expected Float32Array [ 0, 0 ] not to be a Float32Array"
": Expected Float32Array(2) [ 0, 0 ] not to be a Float32Array"
);
assert.equal(error.name, "AssertionError");
assert.equal(error.operator, "refute.isFloat32Array");
Expand Down
8 changes: 4 additions & 4 deletions lib/assertions/is-float-64-array.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe("assert.isFloat64Array", function() {
assert.equal(error.code, "ERR_ASSERTION");
assert.equal(
error.message,
"[assert.isFloat64Array] Expected Float32Array [ 0, 0 ] to be a Float64Array"
"[assert.isFloat64Array] Expected Float32Array(2) [ 0, 0 ] to be a Float64Array"
);
assert.equal(error.name, "AssertionError");
assert.equal(error.operator, "assert.isFloat64Array");
Expand Down Expand Up @@ -94,7 +94,7 @@ describe("assert.isFloat64Array", function() {
error.message,
"[assert.isFloat64Array] " +
message +
": Expected Float32Array [ 0, 0 ] to be a Float64Array"
": Expected Float32Array(2) [ 0, 0 ] to be a Float64Array"
);
assert.equal(error.name, "AssertionError");
assert.equal(error.operator, "assert.isFloat64Array");
Expand All @@ -118,7 +118,7 @@ describe("refute.isFloat64Array", function() {
assert.equal(error.code, "ERR_ASSERTION");
assert.equal(
error.message,
"[refute.isFloat64Array] Expected Float64Array [ 0, 0 ] not to be a Float64Array"
"[refute.isFloat64Array] Expected Float64Array(2) [ 0, 0 ] not to be a Float64Array"
);
assert.equal(error.name, "AssertionError");
assert.equal(error.operator, "refute.isFloat64Array");
Expand Down Expand Up @@ -152,7 +152,7 @@ describe("refute.isFloat64Array", function() {
error.message,
"[refute.isFloat64Array] " +
message +
": Expected Float64Array [ 0, 0 ] not to be a Float64Array"
": Expected Float64Array(2) [ 0, 0 ] not to be a Float64Array"
);
assert.equal(error.name, "AssertionError");
assert.equal(error.operator, "refute.isFloat64Array");
Expand Down
8 changes: 4 additions & 4 deletions lib/assertions/is-int-16-array.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe("assert.isInt16Array", function() {
assert.equal(error.code, "ERR_ASSERTION");
assert.equal(
error.message,
"[assert.isInt16Array] Expected Int8Array [ 0, 0 ] to be an Int16Array"
"[assert.isInt16Array] Expected Int8Array(2) [ 0, 0 ] to be an Int16Array"
);
assert.equal(error.name, "AssertionError");
assert.equal(error.operator, "assert.isInt16Array");
Expand All @@ -36,7 +36,7 @@ describe("assert.isInt16Array", function() {
assert.equal(error.code, "ERR_ASSERTION");
assert.equal(
error.message,
"[assert.isInt16Array] Expected Int32Array [ 0, 0 ] to be an Int16Array"
"[assert.isInt16Array] Expected Int32Array(2) [ 0, 0 ] to be an Int16Array"
);
assert.equal(error.name, "AssertionError");
assert.equal(error.operator, "assert.isInt16Array");
Expand Down Expand Up @@ -136,7 +136,7 @@ describe("refute.isInt16Array", function() {
assert.equal(error.code, "ERR_ASSERTION");
assert.equal(
error.message,
"[refute.isInt16Array] Expected Int16Array [ 0, 0 ] not to be an Int16Array"
"[refute.isInt16Array] Expected Int16Array(2) [ 0, 0 ] not to be an Int16Array"
);
assert.equal(error.name, "AssertionError");
assert.equal(error.operator, "refute.isInt16Array");
Expand Down Expand Up @@ -174,7 +174,7 @@ describe("refute.isInt16Array", function() {
error.message,
"[refute.isInt16Array] " +
message +
": Expected Int16Array [ 0, 0 ] not to be an Int16Array"
": Expected Int16Array(2) [ 0, 0 ] not to be an Int16Array"
);
assert.equal(error.name, "AssertionError");
assert.equal(error.operator, "refute.isInt16Array");
Expand Down
8 changes: 4 additions & 4 deletions lib/assertions/is-int-32-array.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe("assert.isInt32Array", function() {
assert.equal(error.code, "ERR_ASSERTION");
assert.equal(
error.message,
"[assert.isInt32Array] Expected Int8Array [ 0, 0 ] to be an Int32Array"
"[assert.isInt32Array] Expected Int8Array(2) [ 0, 0 ] to be an Int32Array"
);
assert.equal(error.name, "AssertionError");
assert.equal(error.operator, "assert.isInt32Array");
Expand All @@ -32,7 +32,7 @@ describe("assert.isInt32Array", function() {
assert.equal(error.code, "ERR_ASSERTION");
assert.equal(
error.message,
"[assert.isInt32Array] Expected Int16Array [ 0, 0 ] to be an Int32Array"
"[assert.isInt32Array] Expected Int16Array(2) [ 0, 0 ] to be an Int32Array"
);
assert.equal(error.name, "AssertionError");
assert.equal(error.operator, "assert.isInt32Array");
Expand Down Expand Up @@ -140,7 +140,7 @@ describe("refute.isInt32Array", function() {
assert.equal(error.code, "ERR_ASSERTION");
assert.equal(
error.message,
"[refute.isInt32Array] Expected Int32Array [ 0, 0 ] not to be an Int32Array"
"[refute.isInt32Array] Expected Int32Array(2) [ 0, 0 ] not to be an Int32Array"
);
assert.equal(error.name, "AssertionError");
assert.equal(error.operator, "refute.isInt32Array");
Expand Down Expand Up @@ -174,7 +174,7 @@ describe("refute.isInt32Array", function() {
error.message,
"[refute.isInt32Array] " +
message +
": Expected Int32Array [ 0, 0 ] not to be an Int32Array"
": Expected Int32Array(2) [ 0, 0 ] not to be an Int32Array"
);
assert.equal(error.name, "AssertionError");
assert.equal(error.operator, "refute.isInt32Array");
Expand Down
8 changes: 4 additions & 4 deletions lib/assertions/is-int-8-array.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe("assert.isInt8Array", function() {
assert.equal(error.code, "ERR_ASSERTION");
assert.equal(
error.message,
"[assert.isInt8Array] Expected Int16Array [ 0, 0 ] to be an Int8Array"
"[assert.isInt8Array] Expected Int16Array(2) [ 0, 0 ] to be an Int8Array"
);
assert.equal(error.name, "AssertionError");
assert.equal(error.operator, "assert.isInt8Array");
Expand All @@ -36,7 +36,7 @@ describe("assert.isInt8Array", function() {
assert.equal(error.code, "ERR_ASSERTION");
assert.equal(
error.message,
"[assert.isInt8Array] Expected Int32Array [ 0, 0 ] to be an Int8Array"
"[assert.isInt8Array] Expected Int32Array(2) [ 0, 0 ] to be an Int8Array"
);
assert.equal(error.name, "AssertionError");
assert.equal(error.operator, "assert.isInt8Array");
Expand Down Expand Up @@ -132,7 +132,7 @@ describe("refute.isInt8Array", function() {
assert.equal(error.code, "ERR_ASSERTION");
assert.equal(
error.message,
"[refute.isInt8Array] Expected Int8Array [ 0, 0 ] not to be an Int8Array"
"[refute.isInt8Array] Expected Int8Array(2) [ 0, 0 ] not to be an Int8Array"
);
assert.equal(error.name, "AssertionError");
assert.equal(error.operator, "refute.isInt8Array");
Expand Down Expand Up @@ -174,7 +174,7 @@ describe("refute.isInt8Array", function() {
error.message,
"[refute.isInt8Array] " +
message +
": Expected Int8Array [ 0, 0 ] not to be an Int8Array"
": Expected Int8Array(2) [ 0, 0 ] not to be an Int8Array"
);
assert.equal(error.name, "AssertionError");
assert.equal(error.operator, "refute.isInt8Array");
Expand Down
8 changes: 4 additions & 4 deletions lib/assertions/is-u-int-16-array.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe("assert.isUint16Array", function() {
assert.equal(error.code, "ERR_ASSERTION");
assert.equal(
error.message,
"[assert.isUint16Array] Expected Uint32Array [] to be a Uint16Array"
"[assert.isUint16Array] Expected Uint32Array(0) [] to be a Uint16Array"
);
assert.equal(error.name, "AssertionError");
assert.equal(error.operator, "assert.isUint16Array");
Expand All @@ -36,7 +36,7 @@ describe("assert.isUint16Array", function() {
assert.equal(error.code, "ERR_ASSERTION");
assert.equal(
error.message,
"[assert.isUint16Array] Expected Uint8Array [] to be a Uint16Array"
"[assert.isUint16Array] Expected Uint8Array(0) [] to be a Uint16Array"
);
assert.equal(error.name, "AssertionError");
assert.equal(error.operator, "assert.isUint16Array");
Expand Down Expand Up @@ -131,7 +131,7 @@ describe("refute.isUint16Array", function() {
assert.equal(error.code, "ERR_ASSERTION");
assert.equal(
error.message,
"[refute.isUint16Array] Expected Uint16Array [] not to be a Uint16Array"
"[refute.isUint16Array] Expected Uint16Array(0) [] not to be a Uint16Array"
);
assert.equal(error.name, "AssertionError");
assert.equal(error.operator, "refute.isUint16Array");
Expand All @@ -152,7 +152,7 @@ describe("refute.isUint16Array", function() {
error.message,
"[refute.isUint16Array] " +
message +
": Expected Uint16Array [] not to be a Uint16Array"
": Expected Uint16Array(0) [] not to be a Uint16Array"
);
assert.equal(error.name, "AssertionError");
assert.equal(error.operator, "refute.isUint16Array");
Expand Down
8 changes: 4 additions & 4 deletions lib/assertions/is-u-int-32-array.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe("assert.isUint32Array", function() {
assert.equal(error.code, "ERR_ASSERTION");
assert.equal(
error.message,
"[assert.isUint32Array] Expected Uint16Array [] to be a Uint32Array"
"[assert.isUint32Array] Expected Uint16Array(0) [] to be a Uint32Array"
);
assert.equal(error.name, "AssertionError");
assert.equal(error.operator, "assert.isUint32Array");
Expand All @@ -36,7 +36,7 @@ describe("assert.isUint32Array", function() {
assert.equal(error.code, "ERR_ASSERTION");
assert.equal(
error.message,
"[assert.isUint32Array] Expected Uint8Array [] to be a Uint32Array"
"[assert.isUint32Array] Expected Uint8Array(0) [] to be a Uint32Array"
);
assert.equal(error.name, "AssertionError");
assert.equal(error.operator, "assert.isUint32Array");
Expand Down Expand Up @@ -131,7 +131,7 @@ describe("refute.isUint32Array", function() {
assert.equal(error.code, "ERR_ASSERTION");
assert.equal(
error.message,
"[refute.isUint32Array] Expected Uint32Array [] not to be a Uint32Array"
"[refute.isUint32Array] Expected Uint32Array(0) [] not to be a Uint32Array"
);
assert.equal(error.name, "AssertionError");
assert.equal(error.operator, "refute.isUint32Array");
Expand All @@ -152,7 +152,7 @@ describe("refute.isUint32Array", function() {
error.message,
"[refute.isUint32Array] " +
message +
": Expected Uint32Array [] not to be a Uint32Array"
": Expected Uint32Array(0) [] not to be a Uint32Array"
);
assert.equal(error.name, "AssertionError");
assert.equal(error.operator, "refute.isUint32Array");
Expand Down
8 changes: 4 additions & 4 deletions lib/assertions/is-u-int-8-array.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe("assert.isUint8Array", function() {
assert.equal(error.code, "ERR_ASSERTION");
assert.equal(
error.message,
"[assert.isUint8Array] Expected Uint16Array [] to be a Uint8Array"
"[assert.isUint8Array] Expected Uint16Array(0) [] to be a Uint8Array"
);
assert.equal(error.name, "AssertionError");
assert.equal(error.operator, "assert.isUint8Array");
Expand All @@ -36,7 +36,7 @@ describe("assert.isUint8Array", function() {
assert.equal(error.code, "ERR_ASSERTION");
assert.equal(
error.message,
"[assert.isUint8Array] Expected Uint32Array [] to be a Uint8Array"
"[assert.isUint8Array] Expected Uint32Array(0) [] to be a Uint8Array"
);
assert.equal(error.name, "AssertionError");
assert.equal(error.operator, "assert.isUint8Array");
Expand Down Expand Up @@ -131,7 +131,7 @@ describe("refute.isUint8Array", function() {
assert.equal(error.code, "ERR_ASSERTION");
assert.equal(
error.message,
"[refute.isUint8Array] Expected Uint8Array [] not to be a Uint8Array"
"[refute.isUint8Array] Expected Uint8Array(0) [] not to be a Uint8Array"
);
assert.equal(error.name, "AssertionError");
assert.equal(error.operator, "refute.isUint8Array");
Expand All @@ -152,7 +152,7 @@ describe("refute.isUint8Array", function() {
error.message,
"[refute.isUint8Array] " +
message +
": Expected Uint8Array [] not to be a Uint8Array"
": Expected Uint8Array(0) [] not to be a Uint8Array"
);
assert.equal(error.name, "AssertionError");
assert.equal(error.operator, "refute.isUint8Array");
Expand Down
2 changes: 1 addition & 1 deletion lib/assertions/is-undefined.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe("assert.isUndefined", function() {
assert.equal(error.code, "ERR_ASSERTION");
assert.equal(
error.message,
"[assert.isUndefined] Expected [Function] ('function') to be undefined"
"[assert.isUndefined] Expected [Function (anonymous)] ('function') to be undefined"
);
assert.equal(error.name, "AssertionError");
assert.equal(error.operator, "assert.isUndefined");
Expand Down
2 changes: 1 addition & 1 deletion lib/assertions/is-uri-error.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ describe("isURIError factory", function() {
captureArgs()
];

nonWeakSetValues.forEach(function(value) {
nonURIErrorValues.forEach(function(value) {
assert.equal(t.options.assert(value), false);
});
});
Expand Down
4 changes: 2 additions & 2 deletions lib/match.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ describe("match", function() {
assert.equal(error.code, "ERR_ASSERTION");
assert.equal(
error.message,
"[assert.equals] { foo: 1, bar: true } expected to be equal to { foo: 1, bar: { test: [Function], message: 'typeOf(\"string\")' } }"
"[assert.equals] { foo: 1, bar: true } expected to be equal to {\n foo: 1,\n bar: { test: [Function (anonymous)], message: 'typeOf(\"string\")' }\n}"
);
assert.equal(error.name, "AssertionError");
assert.equal(error.operator, "assert.equals");
Expand Down Expand Up @@ -67,7 +67,7 @@ describe("match", function() {
assert.equal(error.code, "ERR_ASSERTION");
assert.equal(
error.message,
"[refute.equals] { foo: 1, bar: 'test' } expected not to be equal to { foo: 1, bar: { test: [Function], message: 'typeOf(\"string\")' } }"
"[refute.equals] { foo: 1, bar: 'test' } expected not to be equal to {\n foo: 1,\n bar: { test: [Function (anonymous)], message: 'typeOf(\"string\")' }\n}"
);
assert.equal(error.name, "AssertionError");
assert.equal(error.operator, "refute.equals");
Expand Down
2 changes: 0 additions & 2 deletions lib/referee.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ describe("API", function() {
"match",
"pass",
"refute",
"setFormatter",
"supervisors",
"verifier"
]);

Expand Down

0 comments on commit ed71199

Please sign in to comment.