Skip to content

Commit

Permalink
Rename function createActiveShop
Browse files Browse the repository at this point in the history
  • Loading branch information
joykare committed Oct 25, 2017
1 parent a4a849f commit f19d39f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/imports/fixtures/shops.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ const activeShop = {
_id: Random.id()
};

export function getActiveShop(options = {}) {
export function createActiveShop(options = {}) {
const existingActiveShop = Shops.findOne({ "workflow.status": "active", ...options });

// If we found an existingActiveShop, return it
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Random } from "meteor/random";
import { expect } from "meteor/practicalmeteor:chai";
import { sinon } from "meteor/practicalmeteor:sinon";
import { Roles } from "meteor/alanning:roles";
import { getActiveShop } from "/server/imports/fixtures/shops";
import { createActiveShop } from "/server/imports/fixtures/shops";
import { Reaction } from "/server/api";
import * as Collections from "/lib/collections";
import Fixtures from "/server/imports/fixtures";
Expand All @@ -18,7 +18,7 @@ describe("Publication", function () {

beforeEach(function () {
Collections.Shops.remove({});
getActiveShop({ _id: shopId });
createActiveShop({ _id: shopId });
sandbox = sinon.sandbox.create();
sandbox.stub(RevisionApi, "isRevisionControlEnabled", () => true);
});
Expand Down

0 comments on commit f19d39f

Please sign in to comment.