Add prettier

This commit is contained in:
typicode
2017-07-02 15:09:32 +02:00
parent 9fd9c3134a
commit 13a231d794
31 changed files with 1041 additions and 1206 deletions

View File

@ -3,22 +3,14 @@ const validateData = require('../../src/server/router/validate-data')
describe('validateData', () => {
it('should throw an error if data contains /', () => {
assert.throws(
() => validateData({ 'a/b': [] }),
/found \//
)
assert.throws(() => validateData({ 'a/b': [] }), /found \//)
})
it('should throw an error if data is an array', () => {
assert.throws(
() => validateData([]),
/must be an object/
)
assert.throws(() => validateData([]), /must be an object/)
})
it('shouldn\'t throw an error', () => {
assert.doesNotThrow(
() => validateData({ a: [] })
)
it("shouldn't throw an error", () => {
assert.doesNotThrow(() => validateData({ a: [] }))
})
})