Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Platane committed Feb 20, 2025
1 parent 8f62181 commit 81c15c9
Showing 4 changed files with 53 additions and 53 deletions.
32 changes: 16 additions & 16 deletions packages/action/package.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"name": "@snk/action",
"version": "1.0.0",
"dependencies": {
"@actions/core": "1.10.1",
"@snk/gif-creator": "1.0.0",
"@snk/github-user-contribution": "1.0.0",
"@snk/solver": "1.0.0",
"@snk/svg-creator": "1.0.0",
"@snk/types": "1.0.0"
},
"devDependencies": {
"@vercel/ncc": "0.38.1"
},
"scripts": {
"build": "bun build --external canvas --external gifsicle --target node --splitting --outdir dist ./index.ts "
}
"name": "@snk/action",
"version": "1.0.0",
"dependencies": {
"@actions/core": "1.10.1",
"@snk/gif-creator": "1.0.0",
"@snk/github-user-contribution": "1.0.0",
"@snk/solver": "1.0.0",
"@snk/svg-creator": "1.0.0",
"@snk/types": "1.0.0"
},
"devDependencies": {
"@vercel/ncc": "0.38.1"
},
"scripts": {
"build": "bun build --external canvas --external gifsicle --target node --splitting --outdir dist ./index.ts "
}
}
48 changes: 24 additions & 24 deletions packages/demo/package.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
{
"name": "@snk/demo",
"version": "1.0.0",
"dependencies": {
"@snk/action": "1.0.0",
"@snk/draw": "1.0.0",
"@snk/github-user-contribution": "1.0.0",
"@snk/solver": "1.0.0",
"@snk/svg-creator": "1.0.0",
"@snk/types": "1.0.0"
},
"devDependencies": {
"@types/dat.gui": "0.7.13",
"dat.gui": "0.7.9",
"html-webpack-plugin": "5.6.0",
"ts-loader": "9.5.1",
"ts-node": "10.9.2",
"webpack": "5.92.1",
"webpack-cli": "5.1.4",
"webpack-dev-server": "5.0.4"
},
"scripts": {
"build": "webpack",
"dev": "webpack serve"
}
"name": "@snk/demo",
"version": "1.0.0",
"dependencies": {
"@snk/action": "1.0.0",
"@snk/draw": "1.0.0",
"@snk/github-user-contribution": "1.0.0",
"@snk/solver": "1.0.0",
"@snk/svg-creator": "1.0.0",
"@snk/types": "1.0.0"
},
"devDependencies": {
"@types/dat.gui": "0.7.13",
"dat.gui": "0.7.9",
"html-webpack-plugin": "5.6.0",
"ts-loader": "9.5.1",
"ts-node": "10.9.2",
"webpack": "5.92.1",
"webpack-cli": "5.1.4",
"webpack-dev-server": "5.0.4"
},
"scripts": {
"build": "webpack",
"dev": "webpack serve"
}
}
2 changes: 1 addition & 1 deletion packages/github-user-contribution/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"name": "@snk/github-user-contribution",
"version": "1.0.0",
"version": "1.0.0"
}
24 changes: 12 additions & 12 deletions packages/types/__tests__/grid.spec.ts
Original file line number Diff line number Diff line change
@@ -2,25 +2,25 @@ import { it, expect, test } from "bun:test";
import { createEmptyGrid, setColor, getColor, isInside, Color } from "../grid";

it("should set / get cell", () => {
const grid = createEmptyGrid(2, 3);
const grid = createEmptyGrid(2, 3);

expect(getColor(grid, 0, 1)).toBe(0 as any);
expect(getColor(grid, 0, 1)).toBe(0 as any);

setColor(grid, 0, 1, 1 as Color);
setColor(grid, 0, 1, 1 as Color);

expect(getColor(grid, 0, 1)).toBe(1 as any);
expect(getColor(grid, 0, 1)).toBe(1 as any);
});

test.each([
[0, 1, true],
[1, 2, true],
[0, 1, true],
[1, 2, true],

[-1, 1, false],
[0, -1, false],
[2, 1, false],
[0, 3, false],
[-1, 1, false],
[0, -1, false],
[2, 1, false],
[0, 3, false],
])("isInside", (x, y, output) => {
const grid = createEmptyGrid(2, 3);
const grid = createEmptyGrid(2, 3);

expect(isInside(grid, x, y)).toBe(output);
expect(isInside(grid, x, y)).toBe(output);
});

0 comments on commit 81c15c9

Please sign in to comment.