Revert eslintrc change, return Promise instead of using async/await

This commit is contained in:
spacejack 2017-10-28 18:32:58 -04:00 committed by Pierre-Yves Gérardy
parent d4181d17c8
commit b771b67111
2 changed files with 2 additions and 5 deletions

View file

@ -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",

View file

@ -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")
}) })