Revert eslintrc change, return Promise instead of using async/await
This commit is contained in:
parent
d4181d17c8
commit
b771b67111
2 changed files with 2 additions and 5 deletions
|
|
@ -5,9 +5,6 @@ module.exports = {
|
||||||
"es6": true,
|
"es6": true,
|
||||||
"node": true
|
"node": true
|
||||||
},
|
},
|
||||||
"parserOptions": {
|
|
||||||
"ecmaVersion": 2017,
|
|
||||||
},
|
|
||||||
"extends": "eslint:recommended",
|
"extends": "eslint:recommended",
|
||||||
"rules": {
|
"rules": {
|
||||||
"accessor-pairs": "error",
|
"accessor-pairs": "error",
|
||||||
|
|
|
||||||
|
|
@ -200,8 +200,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