Skip to content

Commit

Permalink
feat(promize): add basic setup and test runner
Browse files Browse the repository at this point in the history
Issue #2
  • Loading branch information
samtes committed Apr 19, 2017
1 parent ef782a2 commit 37e0639
Show file tree
Hide file tree
Showing 8 changed files with 55 additions and 0 deletions.
1 change: 1 addition & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
version: 2
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
5 changes: 5 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'use strict';

const promize = require('./lib/promize');

module.exports = promize;
7 changes: 7 additions & 0 deletions lib/promize.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
'use strict';

module.exports = {
run: () => {
return 'Hello World!';
}
}
30 changes: 30 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "promize",
"version": "1.0.0",
"description": "Promises runner in sequence",
"main": "index.js",
"directories": {
"doc": "docs"
},
"scripts": {
"test": "ava --verbose"
},
"repository": {
"type": "git",
"url": "git+https://github.com/samtes/promize.git"
},
"keywords": [
"promise",
"promize",
"runner"
],
"author": "Samuel Weldemariam <sweldemariam@gmail.com>",
"license": "UNLICENSED",
"bugs": {
"url": "https://github.com/samtes/promize/issues"
},
"homepage": "https://github.com/samtes/promize#readme",
"dependencies": {
"ava": "^0.19.1"
}
}
Empty file added test/.gitkeep
Empty file.
Binary file added test/unit/.promize_tests.js.swp
Binary file not shown.
11 changes: 11 additions & 0 deletions test/unit/promize_tests.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
'use strict';

const test = require('ava');

const promize = require('../../lib/promize');

test('promize.run -- runs promises that are passed', t => {
t.is(promize.run(), 'Hello World!');
});


0 comments on commit 37e0639

Please sign in to comment.