Skip to content

Commit 04c500d

Browse files
author
Mike Chu
committed
test: remove incorrect assertion + linting
1 parent 23373f1 commit 04c500d

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

lib/index.browser.tests.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2016-2020, 2022-2023 Optimizely
2+
* Copyright 2016-2020, 2022-2024 Optimizely
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -13,6 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
1617
import logging, { getLogger } from './modules/logging/logger';
1718

1819
import { assert } from 'chai';
@@ -67,7 +68,7 @@ if (!global.window) {
6768
}
6869
}
6970

70-
const pause = (timeoutMilliseconds) => {
71+
const pause = timeoutMilliseconds => {
7172
return new Promise(resolve => setTimeout(resolve, timeoutMilliseconds));
7273
};
7374

@@ -846,19 +847,19 @@ describe('javascript-sdk (Browser)', function() {
846847
const userAgentParser = {
847848
parseUserAgentInfo() {
848849
return {
849-
os: { 'name': 'windows', 'version': '11' },
850-
device: { 'type': 'laptop', 'model': 'thinkpad' },
851-
}
852-
}
853-
}
850+
os: { name: 'windows', version: '11' },
851+
device: { type: 'laptop', model: 'thinkpad' },
852+
};
853+
},
854+
};
854855

855856
const fakeRequestHandler = {
856-
makeRequest: sinon.spy(function (requestUrl, headers, method, data) {
857+
makeRequest: sinon.spy(function(requestUrl, headers, method, data) {
857858
return {
858859
abort: () => {},
859860
responsePromise: Promise.resolve({ statusCode: 200 }),
860-
}
861-
})
861+
};
862+
}),
862863
};
863864

864865
const client = optimizelyFactory.createInstance({
@@ -1050,7 +1051,6 @@ describe('javascript-sdk (Browser)', function() {
10501051

10511052
client.sendOdpEvent(ODP_EVENT_ACTION.INITIALIZED);
10521053

1053-
sinon.assert.calledWith(logger.error, 'ODP event send failed.');
10541054
sinon.assert.calledWith(logger.log, optimizelyFactory.enums.LOG_LEVEL.INFO, 'ODP Disabled.');
10551055
});
10561056

0 commit comments

Comments
 (0)