mirror of
https://github.com/wassname/talk.git
synced 2026-08-18 12:30:39 +08:00
move defined errors into top-level errors.js file
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
const expect = require('chai').expect;
|
||||
|
||||
const errors = require('../../errors');
|
||||
const Wordlist = require('../../services/wordlist');
|
||||
|
||||
describe('wordlist: services', () => {
|
||||
@@ -67,7 +67,7 @@ describe('wordlist: services', () => {
|
||||
content: 'how to do really bad things?'
|
||||
}, 'content');
|
||||
|
||||
expect(errors).to.have.property('banned', Wordlist.ErrContainsProfanity);
|
||||
expect(errors).to.have.property('banned', errors.ErrContainsProfanity);
|
||||
});
|
||||
|
||||
it('does not match on bodies not containing bad words', () => {
|
||||
|
||||
Reference in New Issue
Block a user