mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 07:11:34 +08:00
TESTS: Refactored integration tests
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
/* global asyncTest, requirejs, require */
|
||||
/* exported integration, testController, controllerFor, asyncTestDiscourse, fixture */
|
||||
|
||||
|
||||
function integration(name, lifecycle) {
|
||||
module("Integration: " + name, {
|
||||
setup: function() {
|
||||
@ -32,7 +34,7 @@ function testController(klass, model) {
|
||||
module;
|
||||
|
||||
// maybe a bit too hacky? (all of the "admin-*" controllers are in the "admin" directory)
|
||||
if (klass.indexOf("admin") == 0) {
|
||||
if (klass.indexOf("admin") === 0) {
|
||||
base = "admin";
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user