mcopy/app/test/settings.test.js

19 lines
520 B
JavaScript
Raw Normal View History

2019-04-15 19:10:29 +00:00
const assert = require('assert')
const { Settings } = require('settings')
2019-04-15 19:10:29 +00:00
const settings = new Settings()
2019-04-15 19:10:29 +00:00
describe('settings module', async () => {
it('should be an object', () =>{
assert.equal(typeof settings, 'object')
})
it('should have a save method', () =>{
assert.equal(typeof settings.save, 'function')
})
it('should have a restore method', () =>{
assert.equal(typeof settings.restore, 'function')
})
it('should have a reset method', () =>{
assert.equal(typeof settings.reset, 'function')
})
})