Skip to content

Commit fa19881

Browse files
committed
Updated after review
1 parent 3785964 commit fa19881

File tree

9 files changed

+19
-19
lines changed

9 files changed

+19
-19
lines changed

packages/optimizely-sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"typings": "lib/index.d.ts",
99
"scripts": {
1010
"test": "npm run build && mocha ./lib/*.tests.js ./lib/**/*.tests.js ./lib/**/**/*tests.js --recursive --exit --require lib/tests/exit_on_unhandled_rejection.js",
11-
"build": "./node_modules/.bin/babel src --out-dir lib --presets=@babel/env",
11+
"build": "babel src --out-dir lib --presets=@babel/env",
1212
"test-xbrowser": "karma start karma.bs.conf.js --single-run",
1313
"test-umdbrowser": "npm run build-browser-umd && karma start karma.umd.conf.js --single-run",
1414
"build-browser-umd": "rm -rf dist && webpack",

packages/optimizely-sdk/src/plugins/error_handler/index.tests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
import errorHandler from './';
17-
1816
import chai from 'chai';
17+
18+
import errorHandler from './';
1919
var assert = chai.assert;
2020

2121
describe('lib/plugins/error_handler', function() {

packages/optimizely-sdk/src/plugins/event_dispatcher/index.browser.tests.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
import eventDispatcher from './index.browser';
17-
1816
import chai from 'chai';
19-
var assert = chai.assert;
2017
import sinon from 'sinon';
2118

19+
import eventDispatcher from './index.browser';
20+
var assert = chai.assert;
21+
2222
describe('lib/plugins/event_dispatcher/browser', function() {
2323
describe('APIs', function() {
2424
describe('dispatchEvent', function() {

packages/optimizely-sdk/src/plugins/event_dispatcher/index.node.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
* limitations under the License.
1515
*/
1616
import http from 'http';
17-
1817
import https from 'https';
1918
import url from 'url';
2019

packages/optimizely-sdk/src/plugins/event_dispatcher/index.node.tests.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
import eventDispatcher from './index.node.js';
17-
18-
import chai from 'chai';
19-
var assert = chai.assert;
2016
import nock from 'nock';
2117
import sinon from 'sinon';
18+
import chai from 'chai';
19+
20+
import eventDispatcher from './index.node.js';
21+
var assert = chai.assert;
22+
2223

2324
describe('lib/plugins/event_dispatcher/node', function() {
2425
describe('APIs', function() {

packages/optimizely-sdk/src/plugins/logger/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
import {ConsoleLogHandler} from '@optimizely/js-sdk-logging';
16+
import { ConsoleLogHandler } from '@optimizely/js-sdk-logging';
1717

1818
function NoOpLogger() {}
1919

packages/optimizely-sdk/src/plugins/logger/index.react_native.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
* limitations under the License.
1515
*/
1616
import { LogLevel } from '@optimizely/js-sdk-logging';
17-
1817
import { sprintf } from '@optimizely/js-sdk-utils';
1918

2019
function getLogLevelName(level) {

packages/optimizely-sdk/src/plugins/logger/index.react_native.tests.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
import logger from './index.react_native';
17-
16+
import sinon from 'sinon';
1817
import chai from 'chai';
18+
19+
import logger from './index.react_native';
1920
import enums from '../../utils/enums';
2021
var assert = chai.assert;
21-
import sinon from 'sinon';
2222

2323
var LOG_LEVEL = enums.LOG_LEVEL;
2424
describe('lib/plugins/logger/react_native', function() {

packages/optimizely-sdk/src/plugins/logger/index.tests.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
import logger from './';
17-
1816
import chai from 'chai';
17+
import sinon from 'sinon';
18+
19+
import logger from './';
1920
import enums from '../../utils/enums';
2021
var assert = chai.assert;
2122
var expect = chai.expect;
22-
import sinon from 'sinon';
23+
2324

2425
var LOG_LEVEL = enums.LOG_LEVEL;
2526
describe('lib/plugins/logger', function() {

0 commit comments

Comments
 (0)