2019-04-15 19:10:29 +00:00
|
|
|
const assert = require('assert')
|
|
|
|
|
2024-05-24 03:36:51 +00:00
|
|
|
const { Settings } = require('settings')
|
2019-04-15 19:10:29 +00:00
|
|
|
|
2024-05-24 03:36:51 +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')
|
|
|
|
})
|
|
|
|
})
|