Skip to content

Commit 8801981

Browse files
committed
Fix unit tests
1 parent 0b122d3 commit 8801981

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/unit/bootstrap-plugin/BootstrapPlugin.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ let normalReplacementStub = stub();
1515

1616
describe('bootstrap-plugin', () => {
1717
beforeEach(() => {
18+
defineStub.reset();
19+
normalReplacementStub.reset();
20+
1821
mockModule = new MockModule('../../../src/bootstrap-plugin/BootstrapPlugin', require);
1922
mockModule.dependencies(['wrapper-webpack-plugin']);
2023

@@ -124,7 +127,7 @@ window.DojoHasEnvironment = { staticFeatures: shimFeatures };`
124127

125128
assert.isTrue(defineStub.calledOnce);
126129
assert.deepEqual(defineStub.firstCall.args[0], {
127-
__MAIN_CSS_ENTRY: null,
130+
__MAIN_CSS_ENTRY: 'null',
128131
__MAIN_ENTRY: '"main"',
129132
__dojoframeworkshimIntersectionObserver: '"no-bootstrap"',
130133
__dojoframeworkshimWebAnimations: '"no-bootstrap"',

0 commit comments

Comments
 (0)