Closed
Bug 873121
Opened 11 years ago
Closed 11 years ago
Add tests to badword.js
Categories
(Webmaker Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: sedge, Assigned: jon)
Details
In the unit test folder, under `testfiles`, badlist.js contains all of the (current) words from the badwords module :jbuck created. To make this more robust, the badword module has to be given a method that returns the current list of badwords. Then, `badlist.js` should call the badword module and use that method to generate its list of words for use in testing.
Comment 1•11 years ago
|
||
Don't test every word in a test. Just test that 1 of the words in that list does what you expect.
Assignee | ||
Updated•11 years ago
|
Status: NEW → ASSIGNED
Component: Login → General
QA Contact: ross
Summary: Update badlist.js to dynamically retrieve up-to-date badwords list → Add tests to badword.js
Whiteboard: u=dev c=login p=1 → s=2013w20
Assignee | ||
Updated•11 years ago
|
Assignee: nobody → jon
Whiteboard: s=2013w20
Assignee | ||
Comment 2•11 years ago
|
||
Added to Travis too: https://github.com/jbuck/badword
Assignee | ||
Updated•11 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•