Skip to content

Commit

Permalink
build: bump build-config (apache#167)
Browse files Browse the repository at this point in the history
* build: bump build-config

* test: fix typings in mock data
  • Loading branch information
kristw committed Jun 10, 2019
1 parent e1b45d0 commit 007f9a5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
],
"license": "Apache-2.0",
"devDependencies": {
"@superset-ui/build-config": "^0.0.9",
"@superset-ui/build-config": "^0.0.11",
"@superset-ui/commit-config": "^0.0.9",
"fast-glob": "^2.2.6",
"fs-extra": "^8.0.1",
Expand Down
11 changes: 6 additions & 5 deletions packages/superset-ui-connection/test/SupersetClientClass.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,12 +251,13 @@ describe('SupersetClientClass', () => {
const mockPutUrl = `${protocol}//${host}${mockPutEndpoint}`;
const mockDeleteUrl = `${protocol}//${host}${mockDeleteEndpoint}`;
const mockTextJsonResponse = '{ "value": 9223372036854775807 }';
const mockPayload = { json: () => Promise.resolve('payload') };

fetchMock.get(mockGetUrl, { json: 'payload' });
fetchMock.post(mockPostUrl, { json: 'payload' });
fetchMock.put(mockPutUrl, { json: 'payload' });
fetchMock.delete(mockDeleteUrl, { json: 'payload' });
fetchMock.delete(mockRequestUrl, { json: 'payload' });
fetchMock.get(mockGetUrl, mockPayload);
fetchMock.post(mockPostUrl, mockPayload);
fetchMock.put(mockPutUrl, mockPayload);
fetchMock.delete(mockDeleteUrl, mockPayload);
fetchMock.delete(mockRequestUrl, mockPayload);
fetchMock.get(mockTextUrl, mockTextJsonResponse);
fetchMock.post(mockTextUrl, mockTextJsonResponse);

Expand Down

0 comments on commit 007f9a5

Please sign in to comment.