mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Merge pull request #2836 from node-red/theme-plugins
Add support for Theme Plugins
This commit is contained in:
@@ -33,11 +33,11 @@ describe("api/editor/theme", function () {
|
||||
theme.init({settings: {}});
|
||||
fs.statSync.restore();
|
||||
});
|
||||
it("applies the default theme", function () {
|
||||
it("applies the default theme", async function () {
|
||||
var result = theme.init({});
|
||||
should.not.exist(result);
|
||||
|
||||
var context = theme.context();
|
||||
var context = await theme.context();
|
||||
context.should.have.a.property("page");
|
||||
context.page.should.have.a.property("title", "Node-RED");
|
||||
context.page.should.have.a.property("favicon", "favicon.ico");
|
||||
@@ -52,7 +52,7 @@ describe("api/editor/theme", function () {
|
||||
should.not.exist(theme.settings());
|
||||
});
|
||||
|
||||
it("picks up custom theme", function () {
|
||||
it("picks up custom theme", async function () {
|
||||
theme.init({
|
||||
editorTheme: {
|
||||
page: {
|
||||
@@ -104,7 +104,7 @@ describe("api/editor/theme", function () {
|
||||
|
||||
theme.app();
|
||||
|
||||
var context = theme.context();
|
||||
var context = await theme.context();
|
||||
context.should.have.a.property("page");
|
||||
context.page.should.have.a.property("title", "Test Page Title");
|
||||
context.page.should.have.a.property("favicon", "theme/favicon/favicon");
|
||||
|
Reference in New Issue
Block a user