mirror of
https://github.com/typicode/json-server.git
synced 2025-07-28 12:43:18 +08:00
@ -7,7 +7,7 @@ describe('validateData', () => {
|
||||
})
|
||||
|
||||
test('should throw an error if data is an array', () => {
|
||||
assert.throws(() => validateData([]), /Data must be an object. Found array./)
|
||||
assert.throws(() => validateData([]), /Data must be an object. Found array/)
|
||||
})
|
||||
|
||||
test("shouldn't throw an error", () => {
|
||||
|
Reference in New Issue
Block a user