Skip to content

Commit

Permalink
test: fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
iamkun committed May 5, 2018
1 parent 40cc91d commit dd4b727
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
"env": {
"jest/globals": true
},
"globals": {
"window": true,
"dayjs": true
},
"rules": {
"semi": [
2,
Expand Down
3 changes: 1 addition & 2 deletions karma.sauce.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,7 @@ module.exports = function (config) {
logLevel: config.LOG_INFO,

sauceLabs: {
testName: 'Day.js',
"build": "build-0004"
testName: 'Day.js'
},
captureTimeout: 120000,
customLaunchers: batch,
Expand Down
12 changes: 6 additions & 6 deletions test/browser.spec.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
describe('Day.js init', function () {
it('window.dayjs ', function () {
describe('Day.js init', () => {
it('window.dayjs ', () => {
if (!window.dayjs) throw new Error('No window.dayjs')
})
})

describe('dayjs', function () {
it('dayjs init', function () {
expect(dayjs(1523520536000).valueOf()).toBe(1523520536000);
describe('dayjs', () => {
it('dayjs init', () => {
expect(dayjs(1523520536000).valueOf()).toBe(1523520536000)
})
})
})

0 comments on commit dd4b727

Please sign in to comment.