Skip to content

Commit 2360c88

Browse files
Harrison IfeanyichukwuHarrison Ifeanyichukwu
Harrison Ifeanyichukwu
authored and
Harrison Ifeanyichukwu
committed
test: update tests
1 parent 2706bcb commit 2360c88

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/modules/Bundler.spec.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ describe('Bundler', function() {
5555
let builds = bundler.process();
5656
expect(builds.length).toEqual(4);
5757

58-
expect(typeof builds[0].external()).toEqual('boolean');
5958
expect(builds).toBeInstanceOf(Array);
6059

6160
const bundler2 = new Bundler(null, [], {
@@ -70,7 +69,9 @@ describe('Bundler', function() {
7069

7170
it(`should include return array of module build objects for the enabled builds`, function() {
7271
const builds = bundler.process();
73-
expect(typeof builds[0].external()).toEqual('boolean');
72+
if (!Array.isArray(builds[0].external)) {
73+
expect(typeof builds[0].external('', '', false)).toEqual('boolean');
74+
}
7475
expect(builds).toBeInstanceOf(Array);
7576
});
7677

0 commit comments

Comments
 (0)