diff --git a/packages/store-bitbucket/test/index.js b/packages/store-bitbucket/test/index.js index 45e435bac..6e25c1e94 100644 --- a/packages/store-bitbucket/test/index.js +++ b/packages/store-bitbucket/test/index.js @@ -31,12 +31,18 @@ describe("store-bitbucket", () => { }); it("Initiates plug-in", async () => { - const indiekit = await Indiekit.initialize({ config: {} }); - bitbucket.init(indiekit); + const indiekit = await Indiekit.initialize({ + config: { + plugins: ["@indiekit/store-bitbucket"], + publication: { me: "https://website.example" }, + "@indiekit/store-bitbucket": { user: "user", repo: "repo" }, + }, + }); + await indiekit.bootstrap(); assert.equal( indiekit.publication.store.info.name, - "username/repo on Bitbucket", + "user/repo on Bitbucket", ); }); diff --git a/packages/store-file-system/test/index.js b/packages/store-file-system/test/index.js index e671ed531..5b885feba 100644 --- a/packages/store-file-system/test/index.js +++ b/packages/store-file-system/test/index.js @@ -29,8 +29,14 @@ describe("store-file-system", () => { }); it("Initiates plug-in", async () => { - const indiekit = await Indiekit.initialize({ config: {} }); - fileSystem.init(indiekit); + const indiekit = await Indiekit.initialize({ + config: { + plugins: ["@indiekit/store-file-system"], + publication: { me: "https://website.example" }, + "@indiekit/store-file-system": { directory: "directory" }, + }, + }); + await indiekit.bootstrap(); assert.equal(indiekit.publication.store.info.name, "directory"); }); diff --git a/packages/store-ftp/test/index.js b/packages/store-ftp/test/index.js index 65c5359d4..951fa8dd2 100644 --- a/packages/store-ftp/test/index.js +++ b/packages/store-ftp/test/index.js @@ -49,8 +49,14 @@ describe("store-ftp", () => { }); it("Initiates plug-in", async () => { - const indiekit = await Indiekit.initialize({ config: {} }); - ftp.init(indiekit); + const indiekit = await Indiekit.initialize({ + config: { + plugins: ["@indiekit/store-ftp"], + publication: { me: "https://website.example" }, + "@indiekit/store-ftp": { user: "username", host: "127.0.0.1" }, + }, + }); + await indiekit.bootstrap(); assert.equal(indiekit.publication.store.info.name, "username on 127.0.0.1"); }); diff --git a/packages/store-gitea/test/index.js b/packages/store-gitea/test/index.js index 9ed858c5d..a29a2e6fd 100644 --- a/packages/store-gitea/test/index.js +++ b/packages/store-gitea/test/index.js @@ -35,13 +35,16 @@ describe("store-github", async () => { }); it("Initiates plug-in", async () => { - const indiekit = await Indiekit.initialize({ config: {} }); - gitea.init(indiekit); + const indiekit = await Indiekit.initialize({ + config: { + plugins: ["@indiekit/store-gitea"], + publication: { me: "https://website.example" }, + "@indiekit/store-gitea": { user: "user", repo: "repo" }, + }, + }); + await indiekit.bootstrap(); - assert.equal( - indiekit.publication.store.info.name, - "username/repo on Gitea", - ); + assert.equal(indiekit.publication.store.info.name, "user/repo on Gitea"); }); it("Creates file", async () => { diff --git a/packages/store-github/test/index.js b/packages/store-github/test/index.js index f94965c28..35b4f3916 100644 --- a/packages/store-github/test/index.js +++ b/packages/store-github/test/index.js @@ -28,8 +28,14 @@ describe("store-github", async () => { }); it("Initiates plug-in", async () => { - const indiekit = await Indiekit.initialize({ config: {} }); - github.init(indiekit); + const indiekit = await Indiekit.initialize({ + config: { + plugins: ["@indiekit/store-github"], + publication: { me: "https://website.example" }, + "@indiekit/store-github": { user: "user", repo: "repo" }, + }, + }); + await indiekit.bootstrap(); assert.equal(indiekit.publication.store.info.name, "user/repo on GitHub"); }); diff --git a/packages/store-gitlab/test/index.js b/packages/store-gitlab/test/index.js index 3a9074ef1..21976a8e9 100644 --- a/packages/store-gitlab/test/index.js +++ b/packages/store-gitlab/test/index.js @@ -34,8 +34,14 @@ describe("store-gitlab", async () => { }); it("Initiates plug-in", async () => { - const indiekit = await Indiekit.initialize({ config: {} }); - gitlab.init(indiekit); + const indiekit = await Indiekit.initialize({ + config: { + plugins: ["@indiekit/store-gitlab"], + publication: { me: "https://website.example" }, + "@indiekit/store-gitlab": { user: "username", repo: "repo" }, + }, + }); + await indiekit.bootstrap(); assert.equal( indiekit.publication.store.info.name, diff --git a/packages/store-s3/test/index.js b/packages/store-s3/test/index.js index 3dc0360c7..cc1dc0189 100644 --- a/packages/store-s3/test/index.js +++ b/packages/store-s3/test/index.js @@ -30,8 +30,14 @@ describe("store-s3", () => { }); it("Initiates plug-in", async () => { - const indiekit = await Indiekit.initialize({ config: {} }); - s3.init(indiekit); + const indiekit = await Indiekit.initialize({ + config: { + plugins: ["@indiekit/store-s3"], + publication: { me: "https://website.example" }, + "@indiekit/store-s3": { bucket: "website" }, + }, + }); + await indiekit.bootstrap(); assert.equal(indiekit.publication.store.info.name, "website bucket"); });