Skip to content

Commit

Permalink
fix: Fixed invalid tests on the 0.2 branch.
Browse files Browse the repository at this point in the history
  • Loading branch information
iwoplaza committed Dec 21, 2024
1 parent 73a636c commit b0150c6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/typegpu/tests/runtime.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { plum } from '../src/tgpuPlum';
import './utils/webgpuGlobals';

const mockBuffer = {
getMappedRange: vi.fn(() => new ArrayBuffer(8)),
getMappedRange: vi.fn(() => new ArrayBuffer(32)),
unmap: vi.fn(),
mapAsync: vi.fn(),
};
Expand Down
4 changes: 2 additions & 2 deletions packages/typegpu/tests/unmanagedIO.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import './utils/webgpuGlobals';
const mockBuffer = {
mapState: 'unmapped',
usage: GPUBufferUsage.COPY_DST | GPUBufferUsage.COPY_SRC,
getMappedRange: vi.fn(() => new ArrayBuffer(8)),
getMappedRange: vi.fn(() => new ArrayBuffer(32)),
unmap: vi.fn(),
mapAsync: vi.fn(),
destroy: vi.fn(),
Expand All @@ -15,7 +15,7 @@ const mockBuffer = {
const mockStagingBuffer = {
mapState: 'unmapped',
usage: GPUBufferUsage.MAP_READ | GPUBufferUsage.COPY_DST,
getMappedRange: vi.fn(() => new ArrayBuffer(8)),
getMappedRange: vi.fn(() => new ArrayBuffer(32)),
unmap: vi.fn(),
mapAsync: vi.fn(),
destroy: vi.fn(),
Expand Down

0 comments on commit b0150c6

Please sign in to comment.