Skip to content

Commit

Permalink
updated unit tests and fixed dev:mobile script
Browse files Browse the repository at this point in the history
  • Loading branch information
ZibanPirate committed Apr 3, 2023
1 parent ca84468 commit acd68dd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
4 changes: 3 additions & 1 deletion mobile/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
"compilerOptions": {
"strict": true,
"baseUrl": "."
}
},
"include": ["src"],
"exclude": ["src/_e2e-test"]
}
24 changes: 12 additions & 12 deletions packages/models/src/article/__snapshots__/index.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ ArticleEntity {
"content": "test-content",
"contributors": [],
"description": "test-description",
"id": "learn/Getting_Started",
"image": "https://images.unsplash.com/photo-1520338661084-680395057c93?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=formatfit=crop&w=800&q=100",
"slug": "learn/Getting_Started",
"title": "Getting Started",
}
`;
Expand All @@ -22,8 +22,8 @@ ArticleEntity {
"content": "test-content",
"contributors": [],
"description": "test-description",
"id": "learn/Getting_Started",
"image": "https://images.unsplash.com/photo-1520338661084-680395057c93?ixlib=rb-1.2.1&ixid=eyJhcHBfaWQiOjEyMDd9&auto=formatfit=crop&w=800&q=100",
"slug": "learn/Getting_Started",
"title": "Getting Started",
}
`;
Expand All @@ -33,45 +33,45 @@ exports[`should show an error that matches snapshot when passing empty object: e
ValidationError {
"children": [],
"constraints": {
"isString": "id must be a string",
"isString": "image must be a string",
},
"property": "id",
"property": "image",
"target": ArticleEntity {},
"value": undefined,
},
ValidationError {
"children": [],
"constraints": {
"isString": "image must be a string",
"isString": "description must be a string",
},
"property": "image",
"property": "description",
"target": ArticleEntity {},
"value": undefined,
},
ValidationError {
"children": [],
"constraints": {
"isString": "title must be a string",
"isString": "content must be a string",
},
"property": "title",
"property": "content",
"target": ArticleEntity {},
"value": undefined,
},
ValidationError {
"children": [],
"constraints": {
"isString": "description must be a string",
"isString": "slug must be a string",
},
"property": "description",
"property": "slug",
"target": ArticleEntity {},
"value": undefined,
},
ValidationError {
"children": [],
"constraints": {
"isString": "content must be a string",
"isString": "title must be a string",
},
"property": "content",
"property": "title",
"target": ArticleEntity {},
"value": undefined,
},
Expand Down

0 comments on commit acd68dd

Please sign in to comment.