Closed Bug 873121 Opened 11 years ago Closed 11 years ago

Add tests to badword.js

Categories

(Webmaker Graveyard :: General, defect)

x86
macOS
defect
Not set
normal

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.
Don't test every word in a test.  Just test that 1 of the words in that list does what you expect.
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: nobody → jon
Whiteboard: s=2013w20
Added to Travis too: https://github.com/jbuck/badword
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.