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
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
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");

View File

@ -192,7 +192,7 @@ describe("red/nodes/registry/localfilesystem",function() {
list["node-red"].icons[0].should.have.property("path",path.join(__dirname,"resources/local/NestedDirectoryNode/NestedNode/icons"))
list["node-red"].icons[0].should.have.property("icons");
list["node-red"].icons[0].icons.should.have.length(1);
list["node-red"].icons[0].icons[0].should.eql("arrow-in.svg");
list["node-red"].icons[0].icons[0].should.eql("arrow-in.png");
done();
});
it("scans icons dir in library",function(done) {
@ -297,7 +297,7 @@ describe("red/nodes/registry/localfilesystem",function() {
nodeModule.TestNodeModule.icons.should.have.length(1);
nodeModule.TestNodeModule.icons[0].should.have.property("path");
nodeModule.TestNodeModule.icons[0].should.have.property("icons");
nodeModule.TestNodeModule.icons[0].icons[0].should.eql("arrow-in.svg");
nodeModule.TestNodeModule.icons[0].icons[0].should.eql("arrow-in.png");
done();
});
});