From b771b67111f72d72e5d377a07099bb8b7c7f522a Mon Sep 17 00:00:00 2001 From: spacejack Date: Sat, 28 Oct 2017 18:32:58 -0400 Subject: [PATCH] Revert eslintrc change, return Promise instead of using async/await --- .eslintrc.js | 3 --- ospec/tests/test-ospec.js | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 4eeef493..a38c5e1b 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -5,9 +5,6 @@ module.exports = { "es6": true, "node": true }, - "parserOptions": { - "ecmaVersion": 2017, - }, "extends": "eslint:recommended", "rules": { "accessor-pairs": "error", diff --git a/ospec/tests/test-ospec.js b/ospec/tests/test-ospec.js index 9b9f24d5..4ef4614d 100644 --- a/ospec/tests/test-ospec.js +++ b/ospec/tests/test-ospec.js @@ -200,8 +200,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") })