Skip to content

Commit

Permalink
style: run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyJones committed Jan 27, 2022
1 parent e12b4c5 commit 7e9f2e7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions examples/mocha/test/get-dogs.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pactWith(
consumer: "MyConsumer",
provider: "MyProvider",
},
(provider) => {
provider => {
let url = "http://localhost"

const EXPECTED_BODY = [
Expand All @@ -25,7 +25,7 @@ pactWith(
]

describe("get /dogs", () => {
before((done) => {
before(done => {
const interaction = {
state: "i have a list of dogs",
uponReceiving: "a request for all dogs",
Expand All @@ -49,20 +49,20 @@ pactWith(
})
})

it("returns the correct response", (done) => {
it("returns the correct response", done => {
const urlAndPort = {
url: url,
port: port,
}
getMeDogs(urlAndPort).then((response) => {
getMeDogs(urlAndPort).then(response => {
expect(response.data).to.eql(EXPECTED_BODY)
done()
}, done)
})
})

describe("get /dog/1", () => {
before((done) => {
before(done => {
const interaction = {
state: "i have a list of dogs",
uponReceiving: "a request for a single dog",
Expand All @@ -86,12 +86,12 @@ pactWith(
})
})

it("returns the correct response", (done) => {
it("returns the correct response", done => {
const urlAndPort = {
url: url,
port: port,
}
getMeDog(urlAndPort).then((response) => {
getMeDog(urlAndPort).then(response => {
expect(response.data).to.eql(EXPECTED_BODY)
done()
}, done)
Expand Down

0 comments on commit 7e9f2e7

Please sign in to comment.