Skip to content

Commit

Permalink
Only match struct
Browse files Browse the repository at this point in the history
  • Loading branch information
hans00 committed Apr 24, 2024
1 parent ee817f4 commit ff098cd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 61 deletions.
60 changes: 0 additions & 60 deletions test/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -8,63 +8,3 @@ exports[`work fine 1`] = `
"truncated": false,
}
`;

exports[`work fine: partial 1`] = `
{
"token": " swo",
}
`;

exports[`work fine: partial 2`] = `
{
"token": "cha",
}
`;

exports[`work fine: partial 3`] = `
{
"token": "door",
}
`;

exports[`work fine: partial 4`] = `
{
"token": "ter",
}
`;

exports[`work fine: partial 5`] = `
{
"token": " scientific",
}
`;

exports[`work fine: partial 6`] = `
{
"token": " Windows",
}
`;

exports[`work fine: partial 7`] = `
{
"token": "Ca",
}
`;

exports[`work fine: partial 8`] = `
{
"token": " occupied",
}
`;

exports[`work fine: partial 9`] = `
{
"token": "",
}
`;

exports[`work fine: partial 10`] = `
{
"token": " alta",
}
`;
2 changes: 1 addition & 1 deletion test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ it('work fine', async () => {
n_predict: 10,
seed: 0,
}, (data) => {
expect(data).toMatchSnapshot('partial')
expect(data).toMatchObject({ token: expect.any(String) })
})
expect(result).toMatchSnapshot()
})

0 comments on commit ff098cd

Please sign in to comment.