balena-supervisor/test/01-constants.spec.coffee
Pablo Carranza Velez 652b596c80 Add some more unit tests to the multicontainer supervisor
We add a bunch of additional unit tests, and also a coverage report using istanbul.

The tests are not meant to cover everything, but they're a first attempt at having *some* unit testing
on the supervisor. There's much to improve but hopefully it helps catch obvious errors.

Change-Type: patch
Signed-off-by: Pablo Carranza Velez <pablo@resin.io>
2018-04-30 19:39:01 -07:00

12 lines
382 B
CoffeeScript

prepare = require './lib/prepare'
m = require 'mochainon'
{ expect } = m.chai
constants = require '../src/lib/constants'
describe 'constants', ->
before ->
prepare()
it 'has the correct configJsonPathOnHost', ->
expect(constants.configJsonPathOnHost).to.equal('/config.json')
it 'has the correct rootMountPoint', ->
expect(constants.rootMountPoint).to.equal('./test/data')