mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Fix up tests for svg changes
This commit is contained in:
parent
93c811ab70
commit
0b204de5a9
@ -96,9 +96,9 @@ describe("api/editor/index", function() {
|
|||||||
});
|
});
|
||||||
it('serves icons', function(done) {
|
it('serves icons', function(done) {
|
||||||
request(app)
|
request(app)
|
||||||
.get("/red/images/icons/node-changed.png")
|
.get("/red/images/icons/arrow-in.svg")
|
||||||
.expect(200)
|
.expect(200)
|
||||||
.expect("Content-Type", /image\/png/)
|
.expect("Content-Type", /image\/svg\+xml/)
|
||||||
.end(function(err,res) {
|
.end(function(err,res) {
|
||||||
done(err);
|
done(err);
|
||||||
});
|
});
|
||||||
|
@ -45,7 +45,7 @@ describe("api/editor/theme", function () {
|
|||||||
context.page.should.have.a.property("tabicon", "red/images/node-red-icon-black.svg");
|
context.page.should.have.a.property("tabicon", "red/images/node-red-icon-black.svg");
|
||||||
context.should.have.a.property("header");
|
context.should.have.a.property("header");
|
||||||
context.header.should.have.a.property("title", "Node-RED");
|
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.should.have.a.property("asset");
|
||||||
context.asset.should.have.a.property("red", "red/red.min.js");
|
context.asset.should.have.a.property("red", "red/red.min.js");
|
||||||
context.asset.should.have.a.property("main", "red/main.min.js");
|
context.asset.should.have.a.property("main", "red/main.min.js");
|
||||||
|
@ -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("path",path.join(__dirname,"resources/local/NestedDirectoryNode/NestedNode/icons"))
|
||||||
list["node-red"].icons[0].should.have.property("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.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();
|
done();
|
||||||
});
|
});
|
||||||
it("scans icons dir in library",function(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.should.have.length(1);
|
||||||
nodeModule.TestNodeModule.icons[0].should.have.property("path");
|
nodeModule.TestNodeModule.icons[0].should.have.property("path");
|
||||||
nodeModule.TestNodeModule.icons[0].should.have.property("icons");
|
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();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user