Skip to content

Commit

Permalink
Use valid json for mock data in unit tests (#76)
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Li <joshuali925@gmail.com>
  • Loading branch information
joshuali925 committed May 30, 2023
1 parent 13db4cb commit c8016a4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ node_modules/
.cypress/screenshots
.cypress/videos
/target/*
/coverage/
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"test:server": "plugin-helpers test:server",
"test:browser": "plugin-helpers test:browser",
"test:jest": "../../node_modules/.bin/jest --config test/jest.config.js",
"test": "yarn test:jest",
"build": "yarn plugin-helpers build",
"plugin-helpers": "node ../../scripts/plugin_helpers"
},
Expand Down
2 changes: 1 addition & 1 deletion test/mocks/mockData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2331,6 +2331,6 @@ export const mockResultWithNull =
{
"data": {
"ok": true,
"resp": "\"schema\":[{\"name\":\"name\",\"type\":\"keyword\"},{\"name\":\"city\",\"type\":\"keyword\"}],\"datarows\":[[\"Hattie\",\"Seattle\"],[\"John\"]]"
"resp": "{\"schema\":[{\"name\":\"name\",\"type\":\"keyword\"},{\"name\":\"city\",\"type\":\"keyword\"}],\"datarows\":[[\"Hattie\",\"Seattle\"],[\"John\"]]}"
}
}

0 comments on commit c8016a4

Please sign in to comment.