Skip to content

Commit

Permalink
refactor: remove worker test
Browse files Browse the repository at this point in the history
Signed-off-by: Zxilly <[email protected]>
  • Loading branch information
Zxilly committed Oct 28, 2024
1 parent 5b46052 commit 10b3b56
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 82 deletions.
2 changes: 1 addition & 1 deletion internal/wrapper/macho.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ func (m *MachoWrapper) DWARF() (*dwarf.Data, error) {
// There are many other DWARF sections, but these
// are the ones the debug/dwarf package uses.
// Don't bother loading others.
var dat = map[string][]byte{"abbrev": nil, "info": nil, "str": nil, "line": nil, "ranges": nil}
dat := map[string][]byte{"abbrev": nil, "info": nil, "str": nil, "line": nil, "ranges": nil}
for _, s := range m.file.Sections {
suffix := dwarfSuffix(s)
if suffix == "" {
Expand Down
4 changes: 1 addition & 3 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react-swc": "^3.7.1",
"@vitest/coverage-v8": "^2.1.3",
"@vitest/web-worker": "^2.1.3",
"eslint": "^9.13.0",
"eslint-plugin-import-x": "^4.3.1",
"eslint-plugin-react-hooks": "5.1.0-rc.0",
Expand All @@ -60,8 +59,7 @@
"vite": "^5.4.10",
"vite-plugin-html": "^3.2.2",
"vite-plugin-singlefile": "^2.0.2",
"vitest": "^2.1.3",
"vitest-fetch-mock": "^0.4.0"
"vitest": "^2.1.3"
},
"pnpm": {
"peerDependencyRules": {
Expand Down
13 changes: 0 additions & 13 deletions ui/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion ui/src/tool/entry.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ describe("entry", () => {
expect(e.getName()).toMatchSnapshot();
expect(e.getType()).toMatchSnapshot();
expect(e.getSize()).toMatchSnapshot();
expect(e.getChildren().map((e => e.getName()))).toMatchSnapshot();
expect(e.getChildren().map(e => e.getName())).toMatchSnapshot();
expect(e.toString()).toMatchSnapshot();

e.getChildren().forEach(e => matchEntry(e));
Expand Down
26 changes: 0 additions & 26 deletions ui/src/worker/__mocks__/helper.ts

This file was deleted.

38 changes: 0 additions & 38 deletions ui/src/worker/helper.test.ts

This file was deleted.

0 comments on commit 10b3b56

Please sign in to comment.