Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
devbrains-com committed Dec 17, 2024
1 parent 4d5e930 commit 9118656
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"build": "pnpm run --filter=next-yak build",
"build:swc": "pnpm run --filter=yak-swc build",
"example": "pnpm --filter=next-yak-example run dev",
"format": "pnpm run --recursive --if-present format",
"package:types": "npx --package=@arethetypeswrong/cli attw --pack packages/next-yak",
"prettier": "pnpm run --recursive --if-present prettier",
"test": "pnpm run build && pnpm --filter=next-yak --filter=cross-file-tests --filter=next-yak-example run \"/test($|:types)/\"",
Expand Down
1 change: 1 addition & 0 deletions packages/yak-swc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"main": "target/wasm32-wasi/release/yak_swc.wasm",
"scripts": {
"build": "cargo build --release --target=wasm32-wasi",
"format": "cargo fmt --all",
"prepublishOnly": "npm run build",
"test": "cargo test",
"test:snapshots": "cd yak_swc && UPDATE=1 cargo test"
Expand Down
8 changes: 4 additions & 4 deletions packages/yak-swc/relative_posix_path/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ mod tests {

#[test]
fn test_relative_path_windows_forward_slash() {
assert_eq!(
relative_posix_path(r"E:\foo", "E:/foo/bar/file.tsx"),
"bar/file.tsx"
);
assert_eq!(
relative_posix_path(r"E:\foo", "E:/foo/bar/file.tsx"),
"bar/file.tsx"
);
}

#[test]
Expand Down

0 comments on commit 9118656

Please sign in to comment.