MagicMirror/tests/unit/functions/updatenotification_spec.js

15 lines
498 B
JavaScript
Raw Normal View History

2021-09-07 22:07:42 +02:00
const path = require("path");
const git_Helper = require("../../../modules/default/updatenotification/git_helper.js");
const gitHelper = new git_Helper.gitHelper();
gitHelper.add("default");
describe("Updatenotification", function () {
it("should return valid output for git status", async function () {
const arr = await gitHelper.getStatus();
expect(arr.length).toBe(1);
const gitInfo = arr[0];
expect(gitInfo.current).not.toBe("");
expect(gitInfo.hash).not.toBe("");
2021-09-07 22:07:42 +02:00
}, 15000);
});