Skip to content

Commit

Permalink
Merge pull request #40 from loopmediagroup/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
simlu committed Jun 5, 2018
2 parents f638bc0 + d8b4ab3 commit 01d7257
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/cmds/promote.spec.js
@@ -1,14 +1,18 @@
const expect = require('chai').expect;
const open = require("./../../src/util/open");
const promote = require("./../../src/cmds/promote");
const gally = require("./../../src/gally");
const git = require("./../../src/util/git");

describe("Testing `promote <branch>`", () => {
let gallyLoad;
const urls = [];
let gitGhPromoteUrl;
let openUrl;

before(() => {
gallyLoad = gally.load;
gally.load = () => Promise.resolve({});
gitGhPromoteUrl = git.ghPromoteUrl;
git.ghPromoteUrl = () => Promise.resolve("URL");
openUrl = open.url;
Expand All @@ -20,6 +24,7 @@ describe("Testing `promote <branch>`", () => {
after(() => {
git.ghPromoteUrl = gitGhPromoteUrl;
open.url = openUrl;
gally.load = gallyLoad;
});

beforeEach(() => {
Expand Down

0 comments on commit 01d7257

Please sign in to comment.