Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bbba3f2

Browse files
committed
Update test to have priority
1 parent abcf2f1 commit bbba3f2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/models/style-calculator.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,19 @@ describe('StyleCalculator', function(done) {
4444
assert.deepEqual(Object.keys(configChangeCallbacks), ['config1', 'config2']);
4545
assert.equal(stylesMock.addStyleSheet.callCount, 1);
4646
assert.deepEqual(stylesMock.addStyleSheet.getCall(0).args, [
47-
expectedCss, {sourcePath: 'my-source-path'},
47+
expectedCss, {sourcePath: 'my-source-path', priority: 0},
4848
]);
4949

5050
configChangeCallbacks.config1();
5151
assert.equal(stylesMock.addStyleSheet.callCount, 2);
5252
assert.deepEqual(stylesMock.addStyleSheet.getCall(1).args, [
53-
expectedCss, {sourcePath: 'my-source-path'},
53+
expectedCss, {sourcePath: 'my-source-path', priority: 0},
5454
]);
5555

5656
configChangeCallbacks.config2();
5757
assert.equal(stylesMock.addStyleSheet.callCount, 3);
5858
assert.deepEqual(stylesMock.addStyleSheet.getCall(2).args, [
59-
expectedCss, {sourcePath: 'my-source-path'},
59+
expectedCss, {sourcePath: 'my-source-path', priority: 0},
6060
]);
6161
});
6262
});

0 commit comments

Comments
 (0)