Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
ci(test): remove async/await to keep tests simple
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Jun 7, 2017
1 parent a58a32e commit 9ecc786
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"lint": "standard",
"pretest": "npm run lint",
"posttest": "npm run coverage",
"test:local": "node --harmony-async-await ./node_modules/.bin/japa",
"test:local": "node ./node_modules/.bin/japa",
"test": "./node_modules/.bin/nyc npm run test:local",
"test:win": "node --harmony-async-await ./node_modules/japa-cli/index.js",
"test:win": "node ./node_modules/japa-cli/index.js",
"coverage": "nyc report --reporter=text-lcov | coveralls"
},
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions test/helpers.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ test.group('Helpers', (group) => {
assert.equal(this.helpers.tmpPath('logs.txt'), path.join(__dirname, './tmp/logs.txt'))
})

test('promisify callback style functions', async (assert) => {
test('promisify callback style functions', (assert) => {
const readFile = this.helpers.promisify(fs.readFile)
await readFile(path.join(__dirname, '../package.json'))
return readFile(path.join(__dirname, '../package.json'))
})
})

0 comments on commit 9ecc786

Please sign in to comment.