Merge pull request #2004 from spacejack/ospec-eslint-fixes
Update eslint rules for ospec
This commit is contained in:
commit
21e1e6c511
3 changed files with 4 additions and 4 deletions
|
|
@ -4,7 +4,7 @@ module.exports = {
|
||||||
"commonjs": true,
|
"commonjs": true,
|
||||||
"es6": true,
|
"es6": true,
|
||||||
"node": true
|
"node": true
|
||||||
},
|
},
|
||||||
"extends": "eslint:recommended",
|
"extends": "eslint:recommended",
|
||||||
"rules": {
|
"rules": {
|
||||||
"accessor-pairs": "error",
|
"accessor-pairs": "error",
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* eslint-disable no-bitwise, no-process-exit */
|
/* eslint-disable global-require, no-bitwise, no-process-exit */
|
||||||
"use strict"
|
"use strict"
|
||||||
|
|
||||||
module.exports = new function init(name) {
|
module.exports = new function init(name) {
|
||||||
|
|
|
||||||
|
|
@ -188,8 +188,8 @@ o.spec("ospec", function() {
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
o("promise functions", async function() {
|
o("promise functions", function() {
|
||||||
await wrapPromise(function() {
|
return wrapPromise(function() {
|
||||||
o(a).equals(b)
|
o(a).equals(b)
|
||||||
o(a).equals(1)("a and b should be initialized")
|
o(a).equals(1)("a and b should be initialized")
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue