Skip to content

Commit

Permalink
add matching with snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
Anmol1696 committed Nov 11, 2024
1 parent c86982f commit 04186be
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
40 changes: 40 additions & 0 deletions packages/build/__tests__/__snapshots__/schema.test.ts.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`HyperwebBuild builds the fixture project successfully 1`] = `
{
"methods": {},
"state": {
"properties": {
"count": {
"type": "number",
},
"startCoin": {
"properties": {
"amount": {
"type": "string",
},
"denom": {
"type": "string",
},
},
"type": "object",
},
"tokens": {
"items": {
"properties": {
"amount": {
"type": "string",
},
"denom": {
"type": "string",
},
},
"type": "object",
},
"type": "array",
},
},
"type": "object",
},
}
`;
2 changes: 2 additions & 0 deletions packages/build/__tests__/schema.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,7 @@ describe('HyperwebBuild', () => {
expect(schemaData).toHaveProperty('state');
expect(schemaData.state).toHaveProperty('type', 'object');
expect(schemaData.state).toHaveProperty('properties');

expect(schemaData).toMatchSnapshot();
});
});

0 comments on commit 04186be

Please sign in to comment.