-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Pooya Parsa
committed
Aug 13, 2017
1 parent
e7d2abc
commit 4096f83
Showing
6 changed files
with
139 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,31 @@ | ||
module.exports = { | ||
root: true, | ||
parser: 'babel-eslint', | ||
// parser: 'babel-eslint', | ||
parserOptions: { | ||
sourceType: 'module' | ||
}, | ||
env: { | ||
browser: true, | ||
node: true | ||
node: true, | ||
jest: true | ||
}, | ||
extends: 'standard', | ||
// required to lint *.vue files | ||
plugins: [ | ||
'html' | ||
'jest', | ||
'vue' | ||
], | ||
// add your custom rules here | ||
rules: { | ||
// allow paren-less arrow functions | ||
// Allow paren-less arrow functions | ||
'arrow-parens': 0, | ||
// allow async-await | ||
// Allow async-await | ||
'generator-star-spacing': 0, | ||
// allow debugger during development | ||
// Allow debugger during development | ||
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0, | ||
// do not allow console.logs etc... | ||
// Do not allow console.logs etc... | ||
'no-console': 2 | ||
}, | ||
globals: {} | ||
globals: { | ||
'jest/globals': true, | ||
jasmine: true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
const { Nuxt, Builder } = require('nuxt') | ||
const { resolve } = require('path') | ||
|
||
process.env.NODE_ENV = 'production' | ||
|
||
describe('axios module', () => { | ||
let nuxt | ||
let nuxt | ||
|
||
beforeAll(async () => { | ||
jasmine.DEFAULT_TIMEOUT_INTERVAL = 20000 | ||
nuxt = new Nuxt({ srcDir: __dirname + '/fixture', dev: false }) | ||
let builder = new Builder(nuxt) | ||
await builder.build() | ||
}) | ||
beforeAll(async () => { | ||
jasmine.DEFAULT_TIMEOUT_INTERVAL = 20000 | ||
nuxt = new Nuxt({ srcDir: resolve(__dirname, 'fixture'), dev: false }) | ||
let builder = new Builder(nuxt) | ||
await builder.build() | ||
}) | ||
|
||
test('test', () => { | ||
expect(nuxt.options.dev).toBe(false) | ||
}) | ||
test('test', () => { | ||
expect(nuxt.options.dev).toBe(false) | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters