aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--package.json2
-rw-r--r--src/tests/index.js15
2 files changed, 15 insertions, 2 deletions
diff --git a/package.json b/package.json
index a8d454b..29df1c3 100644
--- a/package.json
+++ b/package.json
@@ -30,7 +30,7 @@
"dockerode": "^2.5.1"
},
"scripts": {
- "test": "mocha src/tests/index.js --require babel-core/register",
+ "test": "mocha src/tests/index.js --require babel-core/register --timeout 25000",
"build": "babel ./src/lib --out-dir ./lib",
"check": "eslint ./src/lib/"
}
diff --git a/src/tests/index.js b/src/tests/index.js
index 47b7f79..7a85db3 100644
--- a/src/tests/index.js
+++ b/src/tests/index.js
@@ -1,3 +1,16 @@
+import { assert } from 'chai';
+
+import Containers from '../lib/index';
+
describe('simple-container:', () => {
- it('test()', () => {});
+ it('simple', (done) => {
+ var containers = new Containers();
+ var image = 'hello-world:latest';
+
+ containers.create(image).then(container => {
+ if (container) {
+ done();
+ }
+ });
+ });
}); \ No newline at end of file