mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
test: fix tpl test
This commit is contained in:
@@ -303,7 +303,7 @@ describe('Plugins', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should get resource', (done) => {
|
it('should get resource', (done) => {
|
||||||
const url = `${nconf.get('url')}/plugins/nodebb-plugin-dbsearch/dbsearch/templates/admin/plugins/dbsearch.tpl`;
|
const url = `${nconf.get('url')}/assets/templates/admin/plugins/dbsearch.tpl`;
|
||||||
request.get(url, (err, res, body) => {
|
request.get(url, (err, res, body) => {
|
||||||
assert.ifError(err);
|
assert.ifError(err);
|
||||||
assert.equal(res.statusCode, 200);
|
assert.equal(res.statusCode, 200);
|
||||||
|
|||||||
Reference in New Issue
Block a user