aboutsummaryrefslogtreecommitdiff
path: root/src/tests/index.js
blob: 176d192d1cc300f1d753131843ba416baf588127 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { assert } from 'chai';

import Containers from '../lib/index';

describe('simple-container:', () => {
    var container = null;

    before((done) => {
        var containers = new Containers();
        var image = 'hello-world:latest';

        containers.create(image).then(item => {
            container = item;
            done();
        });
    });

    after((done) => {
        container.stop(() => {
            container.remove(() => {
                done();
            });
        });
    });

    it('simple', () => {
        assert.isString(container.id);
    });
});