Skip to content

Commit

Permalink
fixed unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Better-Boy committed Nov 12, 2024
1 parent 2b6c2de commit c1d23af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/tables/tablesRestApiClient.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe('Testing Models REST API client', () => {
mockedSqlRestApiClient.runQuery.mockClear();
});
test('should create table', async () => {
const tablesRestApiClient = new TablesRestApiClient(mockedSqlRestApiClient);
const tablesRestApiClient = new TablesRestApiClient(mockedSqlRestApiClient, mockedAxios, mockedHttpAuthenticator);
mockedSqlRestApiClient.runQuery.mockImplementation(() => {
return Promise.resolve({
columnNames: [],
Expand Down Expand Up @@ -50,7 +50,7 @@ describe('Testing Models REST API client', () => {
});

test('should create or replace table', async () => {
const tablesRestApiClient = new TablesRestApiClient(mockedSqlRestApiClient);
const tablesRestApiClient = new TablesRestApiClient(mockedSqlRestApiClient, mockedAxios, mockedHttpAuthenticator);
mockedSqlRestApiClient.runQuery.mockImplementation(() => {
return Promise.resolve({
columnNames: [],
Expand Down Expand Up @@ -78,7 +78,7 @@ describe('Testing Models REST API client', () => {
});

test('should delete table', async () => {
const tablesRestApiClient = new TablesRestApiClient(mockedSqlRestApiClient);
const tablesRestApiClient = new TablesRestApiClient(mockedSqlRestApiClient, mockedAxios, mockedHttpAuthenticator);
mockedSqlRestApiClient.runQuery.mockImplementation(() => {
return Promise.resolve({
columnNames: [],
Expand Down

0 comments on commit c1d23af

Please sign in to comment.