Skip to content

Commit

Permalink
attempt to fix the test
Browse files Browse the repository at this point in the history
  • Loading branch information
odilitime committed Dec 20, 2017
1 parent 63e558b commit 74f77b1
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/pnut_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ const nock = require("nock");
chai.use(chaiAsPromised);
chai.should();

const pnut = require("../lib/pnut");
const tavrn = require("../lib/tavrn");

before(function() {
let base = "https://api.pnut.io/v0";
let base = "https://api.sapphire.moe:7070/";

nock(base).get("/somewhere").reply(200, {});

Expand All @@ -22,25 +22,25 @@ after(function() {
nock.cleanAll();
});

describe("The pnut-butter library", () => {
describe("The tavrn-butter library", () => {
it("should be able to send a custom GET request", () => {
return pnut.custom("/somewhere").should.become({});
return tavrn.custom("/somewhere").should.become({});
});

it("should be able to send a custom POST request", () => {
return pnut.custom("/somewhere", "POST", {
return tavrn.custom("/somewhere", "POST", {
text: "sometext"
});
});

it("should be able to send a custom PUT request", () => {
return pnut.custom("/somewhere", "PUT", {
return tavrn.custom("/somewhere", "PUT", {
text: "sometext"
});
});

it("should be able to send a custom PATCH request", () => {
return pnut.custom("/somewhere", "PATCH", {
return tavrn.custom("/somewhere", "PATCH", {
text: "sometext"
});
});
Expand Down

0 comments on commit 74f77b1

Please sign in to comment.