Skip to content

Commit

Permalink
Fixing tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
igoramadas committed Feb 18, 2020
1 parent 357a93e commit c14fb2b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion test/test-a.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe("JAUL Main tests", function() {
let jaul = null

before(function() {
jaul = require("../index")
jaul = require("../lib/index")
})

it("Version available", function(done) {
Expand Down
2 changes: 1 addition & 1 deletion test/test-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe("JAUL Data tests", function() {
let jaul = null

before(function() {
jaul = require("../index")
jaul = require("../lib/index")
})

it("Remove specified characters from string, passing as array", function(done) {
Expand Down
2 changes: 1 addition & 1 deletion test/test-io.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe("JAUL IO Tests", function() {
}

before(function() {
jaul = require("../index")
jaul = require("../lib/index")
cleanup()
})

Expand Down
7 changes: 5 additions & 2 deletions test/test-network.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ describe("JAUL Network Tests", function() {
let supertest = null

before(async function() {
jaul = require("../index")
jaul = require("../lib/index")
port = await getPort(3000)

app = express()
Expand Down Expand Up @@ -94,7 +94,10 @@ describe("JAUL Network Tests", function() {
ip: "10.1.2.3"
}

supertest.get("/").set("X-Forwarded-For", "10.1.2.3").expect(200, body, done)
supertest
.get("/")
.set("X-Forwarded-For", "10.1.2.3")
.expect(200, body, done)
})

it("Get valid IP from socket connection", function(done) {
Expand Down
2 changes: 1 addition & 1 deletion test/test-system.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe("JAUL System Tests", function() {
let jaul = null

before(function() {
jaul = require("../index")
jaul = require("../lib/index")
})

it("Get valid server info", function(done) {
Expand Down

0 comments on commit c14fb2b

Please sign in to comment.