Skip to content

Commit

Permalink
[Tests] require ASSERT tests to pass
Browse files Browse the repository at this point in the history
 - Skip one, pending nodejs/node#30743
  • Loading branch information
ljharb committed Dec 1, 2019
1 parent a42223e commit 6c372ec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ matrix:
- node_js: "12"
env: ASSERT=true TEST=true
- node_js: "10"
env: ASSERT=true TEST=true
env: ASSERT=true TEST=true ALLOW_FAILURE=true
allow_failures:
- env: COVERAGE=true
- env: ASSERT=true TEST=true # some failures are node bugs, some are deep-equal v2 blockers
5 changes: 2 additions & 3 deletions test/cmp.js
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,6 @@ test('arrays initiated', function (t) {
t.end();
});

// eslint-disable-next-line max-statements
test('arrays assigned', function (t) {
var a0 = [
undefined,
Expand Down Expand Up @@ -239,7 +238,6 @@ test('arrays assigned', function (t) {
t.end();
});

// eslint-disable-next-line max-statements
test('arrays push', function (t) {
var a0 = [
undefined,
Expand Down Expand Up @@ -505,8 +503,9 @@ test('getters', { skip: !Object.defineProperty }, function (t) {
t.end();
});

var isAssertAndNode1321 = process.env.ASSERT && process.version.replace(/^v/g, '').replace(/[^.]+(?:.)?/g, function (x, i) { return x * Math.pow(10, i); }) <= '1320000';
// eslint-disable-next-line no-proto
test('fake arrays: extra keys will be tested', { skip: [].__proto__ !== Array.prototype }, function (t) {
test('fake arrays: extra keys will be tested', { skip: [].__proto__ !== Array.prototype || isAssertAndNode1321 }, function (t) {
var a = {
__proto__: Array.prototype,
0: 1,
Expand Down

0 comments on commit 6c372ec

Please sign in to comment.