-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' of github.com:MichMich/MagicMirror into task/i…
…mprove_dockerfile
- Loading branch information
Showing
8 changed files
with
492 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* Magic Mirror Test config newsfeed module | ||
* | ||
* By Rodrigo Ramírez Norambuena https://rodrigoramirez.com | ||
* MIT Licensed. | ||
*/ | ||
|
||
var config = { | ||
port: 8080, | ||
ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], | ||
|
||
language: "en", | ||
timeFormat: 12, | ||
units: "metric", | ||
electronOptions: { | ||
webPreferences: { | ||
nodeIntegration: true, | ||
}, | ||
}, | ||
|
||
modules: [ | ||
{ | ||
|
||
module: "newsfeed", | ||
position: "bottom_bar", | ||
config: { | ||
feeds: [ | ||
{ | ||
title: "Rodrigo Ramirez Blog", | ||
url: "http://localhost:8080/tests/configs/data/feed_test_rodrigoramirez.xml" | ||
}, | ||
] | ||
} | ||
} | ||
] | ||
}; | ||
|
||
/*************** DO NOT EDIT THE LINE BELOW ***************/ | ||
if (typeof module !== "undefined") {module.exports = config;} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
const globalSetup = require("../global-setup"); | ||
const app = globalSetup.app; | ||
const chai = require("chai"); | ||
const expect = chai.expect; | ||
|
||
describe("Newsfeed module", function () { | ||
|
||
this.timeout(20000); | ||
|
||
beforeEach(function (done) { | ||
app.start().then(function() { done(); } ); | ||
}); | ||
|
||
afterEach(function (done) { | ||
app.stop().then(function() { done(); }); | ||
}); | ||
|
||
describe("Default configuration", function() { | ||
|
||
before(function() { | ||
process.env.MM_CONFIG_FILE = "tests/configs/modules/newsfeed/default.js"; | ||
}); | ||
|
||
it("show title newsfeed", function () { | ||
return app.client.waitUntilTextExists(".newsfeed .small", "Rodrigo Ramirez Blog", 10000).should.be.fulfilled; | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters