Skip to content

Commit

Permalink
Updated
Browse files Browse the repository at this point in the history
  • Loading branch information
DaanV2 committed Sep 16, 2024
1 parent 8434b6f commit e19d23a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 13 deletions.
8 changes: 4 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ updates:
- "node-fetch"
test:
patterns:
- "mocha"
- "chai"
- "@types/chai"
- "@types/mocha"
- "jest"
- "eslint"
- "@types/eslint"
- "@types/jest"
- package-ecosystem: "github-actions" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/publish-to-vscode.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# This is a basic workflow to help you get started with Actions
name: 📦 Publish To Vscode

env:
FORCE_COLOR: true

Expand Down
1 change: 0 additions & 1 deletion .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
name: PR

env:
FORCE_COLOR: true

Expand Down
1 change: 0 additions & 1 deletion .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# This is a basic workflow to help you get started with Actions
name: 📋 Unit Test

env:
FORCE_COLOR: true

Expand Down
12 changes: 6 additions & 6 deletions server/src/lib/util/array.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,23 @@ describe("Array Functions", () => {
test("removeDuplicate string", () => {
const items = ["string 1", "string 2", "string 3", "string 2"];
const pruned = removeDuplicate<string>(items);
expect(pruned.length).toEqual(3);
expect(pruned).toHaveLength(3);
});

test("removeDuplicate number", () => {
const items: number[] = [0, 1, 2, 1];

const pruned = removeDuplicate<number>(items);

expect(pruned.length).toEqual(3);
expect(pruned).toHaveLength(3);
});

test("removeDuplicate boolean", () => {
const items: boolean[] = [false, true, false];

const pruned = removeDuplicate<boolean>(items);

expect(pruned.length).toEqual(2);
expect(pruned).toHaveLength(2);
});

test("DupeCheckAdd string", () => {
Expand All @@ -30,7 +30,7 @@ describe("Array Functions", () => {
DupeCheckAdd(items, "string 3");
DupeCheckAdd(items, "string 2");

expect(items.length).toEqual(3);
expect(items).toHaveLength(3);
});

test("DupeCheckAdd number", () => {
Expand All @@ -41,7 +41,7 @@ describe("Array Functions", () => {
DupeCheckAdd(items, 2);
DupeCheckAdd(items, 1);

expect(items.length).toEqual(3);
expect(items).toHaveLength(3);
});

test("DupeCheckAdd boolean", () => {
Expand All @@ -51,6 +51,6 @@ describe("Array Functions", () => {
DupeCheckAdd(items, true);
DupeCheckAdd(items, false);

expect(items.length).toEqual(2);
expect(items).toHaveLength(2);
});
});

0 comments on commit e19d23a

Please sign in to comment.