mirror of
https://github.com/discourse/discourse.git
synced 2025-05-29 01:31:35 +08:00
Moved JSHint into Qunit suite. It's much harder to forget about now!
This commit is contained in:
@ -4,7 +4,7 @@ test('slugFor', function(){
|
||||
|
||||
var slugFor = function(args, val, text) {
|
||||
equal(Discourse.Category.slugFor(args), val, text);
|
||||
}
|
||||
};
|
||||
|
||||
slugFor({slug: 'hello'}, "hello", "It calculates the proper slug for hello");
|
||||
slugFor({id: 123, slug: ''}, "123-category", "It returns id-category for empty strings");
|
||||
|
Reference in New Issue
Block a user