aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2017-10-06 23:00:26 +0300
committerValentin Popov <info@valentineus.link>2017-10-06 23:00:26 +0300
commit06036220547c28283a1162b2259efcba9ffa377f (patch)
tree6e63810971993a01b0595cc0977ebd47faca7867
parentddb3305b4ca659c240a633626a3f6cf8aa6aaf73 (diff)
downloadsimple-container-06036220547c28283a1162b2259efcba9ffa377f.tar.xz
simple-container-06036220547c28283a1162b2259efcba9ffa377f.zip
A simple test for testing
-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