Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

helloworld_spec.js 1004B

123456789101112131415161718192021222324252627282930313233
  1. const helpers = require("../global-setup");
  2. describe("Test helloworld module", function () {
  3. afterAll(function () {
  4. helpers.stopApplication();
  5. });
  6. describe("helloworld set config text", function () {
  7. beforeAll(function (done) {
  8. helpers.startApplication("tests/configs/modules/helloworld/helloworld.js");
  9. helpers.getDocument(done, 1000);
  10. });
  11. it("Test message helloworld module", function () {
  12. const elem = document.querySelector(".helloworld");
  13. expect(elem).not.toBe(null);
  14. expect(elem.textContent).toContain("Test HelloWorld Module");
  15. });
  16. });
  17. describe("helloworld default config text", function () {
  18. beforeAll(function (done) {
  19. helpers.startApplication("tests/configs/modules/helloworld/helloworld_default.js");
  20. helpers.getDocument(done, 1000);
  21. });
  22. it("Test message helloworld module", function () {
  23. const elem = document.querySelector(".helloworld");
  24. expect(elem).not.toBe(null);
  25. expect(elem.textContent).toContain("Hello World!");
  26. });
  27. });
  28. });