Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
timcash committed Apr 24, 2016
0 parents commit cf064e4
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
Empty file added index.js
Empty file.
14 changes: 14 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "async_workshop",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "ava"
},
"author": "",
"license": "ISC",
"devDependencies": {
"ava": "^0.14.0"
}
}
21 changes: 21 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import test from 'ava';

test('foo', t => {
t.pass();
});

test('bar', async t => {
const bar = Promise.resolve('bar');

t.is(await bar, 'bar');
});

test('bilbo', t => {
t.pass();
})

test('bilbo', t => {
let a = 1
t.is(a, 1)
t.pass()
})

0 comments on commit cf064e4

Please sign in to comment.