Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Haaxor1689 committed Dec 11, 2023
1 parent 3d7b87e commit 182142e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/__tests__/number.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { expect, test } from '@jest/globals';

import { n } from '../index';

test('encodes', () => {
expect(n.uint8().fromBuffer(new Uint8Array([0xab]))).toEqual(0xab);
test('encodes', async () => {
expect(await n.uint8().fromBuffer(new Uint8Array([0xab]))).toEqual(0xab);

expect(n.uint8().fromBuffer(new Uint8Array([0xff]))).toEqual(255);
expect(n.int8().fromBuffer(new Uint8Array([0xff]))).toEqual(-1);
expect(await n.uint8().fromBuffer(new Uint8Array([0xff]))).toEqual(255);
expect(await n.int8().fromBuffer(new Uint8Array([0xff]))).toEqual(-1);
});

0 comments on commit 182142e

Please sign in to comment.