Skip to content

Commit

Permalink
add tests for _created field
Browse files Browse the repository at this point in the history
Signed-off-by: Matthias Weirich <matthias.weirich@selectcode.de>
  • Loading branch information
vavido committed Apr 9, 2021
1 parent cbf58e0 commit 5bc9c9f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion javascript/lib/api/tests/model/things.model.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const thingObj = {
features: featuresObj,
_revision: 0,
_modified: '08042019',
_created: '2017-06-01T00:01:57Z',
definition: 'example:test:definition',
_metadata: metadataObject,
acl: aclObj
Expand Down Expand Up @@ -74,7 +75,8 @@ const thing = new Thing('Testspace:Testthing',
'08042019',
acl,
'example:test:definition',
metadata);
metadata,
'2017-06-01T00:01:57Z');
const response = new SearchThingsResponse([thing], 0);

describe('Feature', () => {
Expand Down Expand Up @@ -181,6 +183,7 @@ describe('Thing', () => {
expect(thing.name).toEqual('Testthing');
expect(thing.acl).toEqual(acl);
expect(thing.definition).toEqual('example:test:definition');
expect(thing.created).toEqual('2017-06-01T00:01:57Z');
});
it('handles a minimal thing', () => {
const minimalThing = new Thing('Tespspace:Minimal');
Expand Down

0 comments on commit 5bc9c9f

Please sign in to comment.