Skip to content

Commit

Permalink
chore: fix for node 12 assertion error
Browse files Browse the repository at this point in the history
  • Loading branch information
lili2311 committed Feb 16, 2020
1 parent 82d877b commit b4f465a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
sudo: false
language: node_js
node_js:
- "12"
- "12.0.0"
- "10"
- "8"
- "6"
Expand Down
8 changes: 4 additions & 4 deletions test/acceptance/cli-monitor/cli-monitor.acceptance.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ test('`monitor npm-out-of-sync graph monitor`', async (t) => {
});
const req = server.popRequest();
t.match(req.url, '/monitor/npm/graph', 'puts at correct url');
t.ok(req.body.depGraphJSON, 'sends depGraphJSON');
t.true(!_.isEmpty(req.body.depGraphJSON), 'sends depGraphJSON');
t.deepEqual(
req.body.meta.missingDeps,
['body-parser@^1.18.2'],
Expand Down Expand Up @@ -252,7 +252,7 @@ test('`monitor npm-package-pruneable --prune-repeated-subdependencies --experime
const req = server.popRequest();
t.equal(req.method, 'PUT', 'makes PUT request');
t.match(req.url, '/monitor/npm/graph', 'puts at correct url');
t.ok(req.body.depGraphJSON, 'sends depGraphJSON');
t.true(!_.isEmpty(req.body.depGraphJSON), 'sends depGraphJSON');
});

test('`monitor npm-package-pruneable --experimental-dep-graph`', async (t) => {
Expand All @@ -264,7 +264,7 @@ test('`monitor npm-package-pruneable --experimental-dep-graph`', async (t) => {
const req = server.popRequest();
t.equal(req.method, 'PUT', 'makes PUT request');
t.match(req.url, '/monitor/npm/graph', 'puts at correct url');
t.ok(req.body.depGraphJSON, 'sends depGraphJSON');
t.true(!_.isEmpty(req.body.depGraphJSON), 'sends depGraphJSON');
});

test('`monitor npm-package-pruneable experimental for no-flag org`', async (t) => {
Expand Down Expand Up @@ -306,7 +306,7 @@ test('`monitor sbt package --experimental-dep-graph --sbt-graph`', async (t) =>
const req = server.popRequest();
t.equal(req.method, 'PUT', 'makes PUT request');
t.match(req.url, '/monitor/sbt/graph', 'puts at correct url');
t.ok(req.body.depGraphJSON, 'sends depGraphJSON');
t.true(!_.isEmpty(req.body.depGraphJSON), 'sends depGraphJSON');
if (process.platform === 'win32') {
t.true(
req.body.targetFileRelativePath.endsWith(
Expand Down

0 comments on commit b4f465a

Please sign in to comment.