Skip to content
This repository was archived by the owner on Aug 4, 2021. It is now read-only.

Commit 135baaa

Browse files
author
Kelly Selden
committed
update rollup and fix test regression
1 parent 902c848 commit 135baaa

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

package-lock.json

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"es5-ext": "^0.10.39",
88
"eslint": "^4.18.0",
99
"mocha": "^5.0.1",
10-
"rollup": "^0.54.1",
10+
"rollup": "^0.55.5",
1111
"rollup-plugin-buble": "^0.19.2",
1212
"rollup-plugin-commonjs": "^8.3.0",
1313
"string-capitalize": "^1.0.1",
@@ -21,7 +21,6 @@
2121
"pretest": "npm run build",
2222
"test": "mocha",
2323
"posttest": "eslint src test/*.js",
24-
"prepublish": "npm test",
2524
"lint": "eslint src"
2625
},
2726
"files": [

test/test.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ function executeBundle ( bundle ) {
1414
}).then( generated => {
1515
const fn = new Function ( 'module', 'exports', 'assert', generated.code );
1616
const module = { exports: {} };
17-
17+
1818
fn( module, module.exports, assert );
19-
19+
2020
return module;
2121
});
2222
}
@@ -356,7 +356,7 @@ describe( 'rollup-plugin-node-resolve', function () {
356356
})
357357
]
358358
}).then( bundle => {
359-
assert.deepEqual( bundle.imports.sort(), [ 'events' ] );
359+
assert.equal( bundle.modules.length, 1 );
360360
});
361361
});
362362

@@ -369,7 +369,7 @@ describe( 'rollup-plugin-node-resolve', function () {
369369
})
370370
]
371371
}).then( bundle => {
372-
assert.deepEqual( bundle.imports.sort(), [] );
372+
assert.equal( bundle.modules.length, 2 );
373373
});
374374
});
375375

0 commit comments

Comments
 (0)