Skip to content

Commit

Permalink
Merge pull request #93 from ripe-tech/acaldas/restrictions_post_config
Browse files Browse the repository at this point in the history
Fixed restrictions test
  • Loading branch information
joamag authored Feb 28, 2019
2 parents 5baa3ed + e2b1c5f commit aa44323
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/js/restrictions.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ describe("Restrictions", function() {
{ manual: true }
);
restrictionsPlugin.register(mockRipe);
mockRipe.trigger("config");
mockRipe.trigger("post_config");

assert.deepStrictEqual(initialParts, mockRipe.parts);

Expand Down Expand Up @@ -151,7 +151,7 @@ describe("Restrictions", function() {

assert.deepStrictEqual(initialParts, mockRipe.parts);

mockRipe.trigger("config");
mockRipe.trigger("post_config");

mockRipe.setPart("logo", "metal", "gold");
assert.deepStrictEqual(
Expand Down Expand Up @@ -195,7 +195,7 @@ describe("Restrictions", function() {
const instance = new ripe.Ripe("swear", "vyner", { plugins: [restrictionsPlugin] });
instance.load();
await new Promise((resolve, reject) => {
instance.bind("config", resolve);
instance.bind("post_config", resolve);
});

assert.deepStrictEqual(
Expand All @@ -206,7 +206,7 @@ describe("Restrictions", function() {

instance.config("toga_pulla", "elvis");
await new Promise((resolve, reject) => {
instance.bind("config", resolve);
instance.bind("post_config", resolve);
});

assert.deepStrictEqual(
Expand Down

0 comments on commit aa44323

Please sign in to comment.