mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +00:00
15 lines
498 B
JavaScript
15 lines
498 B
JavaScript
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("");
|
|
}, 15000);
|
|
});
|