Skip to content

Commit

Permalink
Upgrade axios (#7196)
Browse files Browse the repository at this point in the history
  • Loading branch information
ylavoie committed Feb 5, 2023
1 parent d5e445e commit 914754b
Show file tree
Hide file tree
Showing 10 changed files with 171 additions and 148 deletions.
3 changes: 1 addition & 2 deletions UI/tests/specs/openapi/API-contacts-business_types.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

// Import test packages
import axios from "axios";
import http from "axios/lib/adapters/http";
import jestOpenAPI from "jest-openapi";
import { StatusCodes } from "http-status-codes";
import { create_database, drop_database } from "./database";
Expand All @@ -31,7 +30,7 @@ let headers = {};

// For all tests
beforeAll(() => {
axios.defaults.adapter = http;
axios.defaults.adapter = 'http';
create_database(username, password, company);
});

Expand Down
3 changes: 1 addition & 2 deletions UI/tests/specs/openapi/API-contacts-sic.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

// Import test packages
import axios from "axios";
import http from "axios/lib/adapters/http";
import jestOpenAPI from "jest-openapi";
import { StatusCodes } from "http-status-codes";
import { create_database, drop_database } from "./database";
Expand All @@ -31,7 +30,7 @@ let headers = {};

// For all tests
beforeAll(() => {
axios.defaults.adapter = http;
axios.defaults.adapter = 'http';
create_database(username, password, company);
});

Expand Down
3 changes: 1 addition & 2 deletions UI/tests/specs/openapi/API-country.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

// Import test packages
import axios from "axios";
import http from "axios/lib/adapters/http";
import jestOpenAPI from "jest-openapi";
import { StatusCodes } from "http-status-codes";
import { create_database, drop_database } from "./database";
Expand All @@ -33,7 +32,7 @@ let headers = {};

// For all tests
beforeAll(() => {
axios.defaults.adapter = http;
axios.defaults.adapter = 'http';
create_database(username, password, company);
});

Expand Down
3 changes: 1 addition & 2 deletions UI/tests/specs/openapi/API-gifi.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

// Import test packages
import axios from "axios";
import http from "axios/lib/adapters/http";
import jestOpenAPI from "jest-openapi";
import { StatusCodes } from "http-status-codes";
import { create_database, drop_database } from "./database";
Expand All @@ -33,7 +32,7 @@ let headers = {};

// For all tests
beforeAll(() => {
axios.defaults.adapter = http;
axios.defaults.adapter = 'http';
create_database(username, password, company);
});

Expand Down
3 changes: 1 addition & 2 deletions UI/tests/specs/openapi/API-invoices.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

// Import test packages
import axios from "axios";
import http from "axios/lib/adapters/http";
import jestOpenAPI from "jest-openapi";
import { StatusCodes } from "http-status-codes";
import { create_database, drop_database, load_coa, initialize } from "./database";
Expand All @@ -30,7 +29,7 @@ let headers = {};

// For all tests
beforeAll(() => {
axios.defaults.adapter = http;
axios.defaults.adapter = 'http';
create_database(username, password, company);
load_coa(username, password, company, "locale/coa/us/General.xml");
initialize(company,"UI/tests/specs/data/Invoices.sql");
Expand Down
3 changes: 1 addition & 2 deletions UI/tests/specs/openapi/API-languages.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

// Import test packages
import axios from "axios";
import http from "axios/lib/adapters/http";
import jestOpenAPI from "jest-openapi";
import { StatusCodes } from "http-status-codes";
import { create_database, drop_database } from "./database";
Expand All @@ -31,7 +30,7 @@ let headers = {};

// For all tests
beforeAll(() => {
axios.defaults.adapter = http;
axios.defaults.adapter = 'http';
create_database(username, password, company);
});

Expand Down
3 changes: 1 addition & 2 deletions UI/tests/specs/openapi/API-products-pricegroups.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

// Import test packages
import axios from "axios";
import http from "axios/lib/adapters/http";
import jestOpenAPI from "jest-openapi";
import { StatusCodes } from "http-status-codes";
import { create_database, drop_database } from "./database";
Expand All @@ -31,7 +30,7 @@ let headers = {};

// For all tests
beforeAll(() => {
axios.defaults.adapter = http;
axios.defaults.adapter = 'http';
create_database(username, password, company);
});

Expand Down
3 changes: 1 addition & 2 deletions UI/tests/specs/openapi/API-products-warehouses.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

// Import test packages
import axios from "axios";
import http from "axios/lib/adapters/http";
import jestOpenAPI from "jest-openapi";
import { StatusCodes } from "http-status-codes";
import { create_database, drop_database } from "./database";
Expand All @@ -31,7 +30,7 @@ let headers = {};

// For all tests
beforeAll(() => {
axios.defaults.adapter = http;
axios.defaults.adapter = 'http';
create_database(username, password, company);
});

Expand Down
Loading

0 comments on commit 914754b

Please sign in to comment.