Skip to content

Commit

Permalink
Update and refactor test
Browse files Browse the repository at this point in the history
  • Loading branch information
gfscott committed Jul 20, 2024
1 parent b79b105 commit fa1bece
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/everything/test/test-configOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const config = require("../lib/configOptions.js");
const defaultOptions = {
activePlugins: [
"instagram",
"openstreetmap",
"spotify",
"ted",
"tiktok",
Expand All @@ -14,6 +15,7 @@ const defaultOptions = {
],
activePluginOptions: {
instagram: {options: {}},
openstreetmap: {options: {}},
spotify: {options: {}},
ted: {options: {}},
tiktok: {options: {}},
Expand Down Expand Up @@ -62,7 +64,7 @@ test(
add: ["soundcloud"],
});
let expected = clone(defaultOptions);
expected.activePlugins.splice(1, 0, "soundcloud");
expected.activePlugins = [...expected.activePlugins, "soundcloud"].sort();
expected.activePluginOptions.soundcloud = {options: {}};
t.deepEqual(output, expected);
},
Expand Down Expand Up @@ -222,7 +224,7 @@ test(
soundcloud: {options: {small: true}},
});
let expected = clone(defaultOptions);
expected.activePlugins.splice(1, 0, "soundcloud");
expected.activePlugins = [...expected.activePlugins, "soundcloud"].sort();
expected.activePluginOptions.soundcloud = {options: {small: true}};
t.deepEqual(output, expected);
},
Expand Down

0 comments on commit fa1bece

Please sign in to comment.