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,
|
||||
"es6": true,
|
||||
"node": true
|
||||
},
|
||||
},
|
||||
"extends": "eslint:recommended",
|
||||
"rules": {
|
||||
"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"
|
||||
|
||||
module.exports = new function init(name) {
|
||||
|
|
|
|||
|
|
@ -188,8 +188,8 @@ o.spec("ospec", function() {
|
|||
})
|
||||
})
|
||||
|
||||
o("promise functions", async function() {
|
||||
await wrapPromise(function() {
|
||||
o("promise functions", function() {
|
||||
return wrapPromise(function() {
|
||||
o(a).equals(b)
|
||||
o(a).equals(1)("a and b should be initialized")
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue