Revert "Fix tests to use default activated plugin"

This reverts commit 44a59ac435.
v1.18.x
Peter Jaszkowiak 8 years ago
parent d31499a860
commit fdad66f58e

@ -152,7 +152,7 @@ describe('Plugins', function () {
});
describe('static assets', function () {
it('should 404 if plugin does not exist', function (done) {
it('should 404 if resource does not exist', function (done) {
request.get(nconf.get('url') + '/plugins/doesnotexist/should404.tpl', function (err, res, body) {
assert.ifError(err);
assert.equal(res.statusCode, 404);
@ -162,7 +162,7 @@ describe('Plugins', function () {
});
it('should 404 if resource does not exist', function (done) {
request.get(nconf.get('url') + '/plugins/nodebb-plugin-markdown/js/should404.js', function (err, res, body) {
request.get(nconf.get('url') + '/plugins/nodebb-plugin-dbsearch/dbsearch/templates/admin/plugins/should404.tpl', function (err, res, body) {
assert.ifError(err);
assert.equal(res.statusCode, 404);
assert(body);
@ -171,7 +171,7 @@ describe('Plugins', function () {
});
it('should get resource', function (done) {
request.get(nconf.get('url') + '/plugins/nodebb-plugin-markdown/js/admin.js', function (err, res, body) {
request.get(nconf.get('url') + '/plugins/nodebb-plugin-dbsearch/dbsearch/templates/admin/plugins/dbsearch.tpl', function (err, res, body) {
assert.ifError(err);
assert.equal(res.statusCode, 200);
assert(body);

Loading…
Cancel
Save