Fix up tests for svg changes

This commit is contained in:
Nick O'Leary
2019-06-21 22:01:24 +01:00
parent 93c811ab70
commit 0b204de5a9
3 changed files with 5 additions and 5 deletions

View File

@@ -96,9 +96,9 @@ describe("api/editor/index", function() {
});
it('serves icons', function(done) {
request(app)
.get("/red/images/icons/node-changed.png")
.get("/red/images/icons/arrow-in.svg")
.expect(200)
.expect("Content-Type", /image\/png/)
.expect("Content-Type", /image\/svg\+xml/)
.end(function(err,res) {
done(err);
});

View File

@@ -45,7 +45,7 @@ describe("api/editor/theme", function () {
context.page.should.have.a.property("tabicon", "red/images/node-red-icon-black.svg");
context.should.have.a.property("header");
context.header.should.have.a.property("title", "Node-RED");
context.header.should.have.a.property("image", "red/images/node-red.png");
context.header.should.have.a.property("image", "red/images/node-red.svg");
context.should.have.a.property("asset");
context.asset.should.have.a.property("red", "red/red.min.js");
context.asset.should.have.a.property("main", "red/main.min.js");