correios-webservice
Version:
Cliente NodeJS para consumir a api nova dos Correios (CWS)
21 lines (19 loc) • 543 B
text/typescript
import { AuthPostcard } from "../src/auth";
import { CorreiosClient } from "../src/client";
import { ProductCode } from "../src/types";
describe("Math Operations", () => {
test("teting calculate price", () => {
const auth = new AuthPostcard({
userName: "0",
accessToken: "0",
postCardNumber: "0",
});
const client = new CorreiosClient(auth);
expect(
client.preco.nacional.get(ProductCode.Sedex, {
cepDestino: "0",
cepOrigem: "0",
})
).toBe(0);
});
});