mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-28 09:38:52 +00:00
652b596c80
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>
12 lines
382 B
CoffeeScript
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') |