Skip to content

Commit 264de9a

Browse files
committed
test: add import tests for all packages
1 parent fc5f36e commit 264de9a

File tree

5 files changed

+45
-10
lines changed

5 files changed

+45
-10
lines changed
Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,11 @@
1-
// eslint-disable-next-line import/no-unassigned-import
2-
import "../src/index.js"
1+
import { error, info, notice, success, warning } from "../src/index.js"
2+
3+
describe("ci-log", () => {
4+
it("should be a function", () => {
5+
expect(error).toBeInstanceOf(Function)
6+
expect(success).toBeInstanceOf(Function)
7+
expect(warning).toBeInstanceOf(Function)
8+
expect(notice).toBeInstanceOf(Function)
9+
expect(info).toBeInstanceOf(Function)
10+
})
11+
})
Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,10 @@
1-
// eslint-disable-next-line import/no-unassigned-import
2-
import "../src/index.js"
1+
import { addEnv, addPath, finalizeRC, sourceRC } from "../src/index.js"
2+
3+
describe("envosman", () => {
4+
it("should be a function", () => {
5+
expect(addEnv).toBeInstanceOf(Function)
6+
expect(addPath).toBeInstanceOf(Function)
7+
expect(finalizeRC).toBeInstanceOf(Function)
8+
expect(sourceRC).toBeInstanceOf(Function)
9+
})
10+
})
Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
1-
// eslint-disable-next-line import/no-unassigned-import
2-
import "../src/index.js"
1+
import { execPowershell, execPowershellSync, getPowerShell } from "../src/index.js"
2+
3+
describe("exec-powershell", () => {
4+
it("should be a function", () => {
5+
expect(execPowershell).toBeInstanceOf(Function)
6+
expect(execPowershellSync).toBeInstanceOf(Function)
7+
expect(getPowerShell).toBeInstanceOf(Function)
8+
})
9+
})
Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
1-
// eslint-disable-next-line import/no-unassigned-import
2-
import "../src/index.js"
1+
import { hasApk, installApkPack } from "../src/index.js"
2+
3+
describe("setup-alpine", () => {
4+
it("should be a function", () => {
5+
expect(installApkPack).toBeInstanceOf(Function)
6+
expect(hasApk).toBeInstanceOf(Function)
7+
})
8+
})
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1-
// eslint-disable-next-line import/no-unassigned-import
2-
import "../src/index.js"
1+
import { untildifyUser } from "../src/index.js"
2+
3+
describe("untildify-user", () => {
4+
it("should be a function", () => {
5+
expect(untildifyUser).toBeInstanceOf(Function)
6+
})
7+
})

0 commit comments

Comments
 (0)