Skip to content

Commit

Permalink
test: refector some test.
Browse files Browse the repository at this point in the history
  • Loading branch information
vangie committed Apr 16, 2023
1 parent 026611d commit af531b2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/__tests__/node.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,16 @@ describe('node.ts', () => {
node[field] = 1;
const newCtime = node.ctime;
expect(newCtime).not.toBe(oldCtime);
expect(node[field]).toBe(1);
});
});

describe.each([
['getString', []],
['getBuffer', []],
['read', [Buffer.alloc(0)]],
])('atime changes', (method, args) => {
it(`${method}()`, () => {
])('when %s is called', (method, args) => {
it(`updates the atime and ctime`, () => {
const node = new Node(1);
const oldAtime = node.atime;
const oldCtime = node.ctime;
Expand Down

0 comments on commit af531b2

Please sign in to comment.