refactor: Use matchsnapshot for datastore tests

This commit is contained in:
Faruk AYDIN
2024-09-30 16:43:06 +03:00
parent 9006a0c25f
commit 7abe44da19
2 changed files with 37 additions and 3 deletions

View File

@@ -7,8 +7,6 @@ describe('Datastore model', () => {
});
it('jsonSchema should have correct validations', () => {
expect(Datastore).toRequireProperty('key');
expect(Datastore).toRequireProperty('value');
expect(Datastore).toRequireProperty('scopeId');
expect(Datastore.jsonSchema).toMatchSnapshot();
});
});