Skip to content

Commit

Permalink
Revert "Appease linter gods"
Browse files Browse the repository at this point in the history
This reverts commit d744985.
  • Loading branch information
JacobLey committed Dec 17, 2019
1 parent d744985 commit d073e34
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions test/serialized.objects.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ describe(packageJson.name, () => {
fooBar: '{"foo":"bar"}',
})
.expect(200)
.then((r: any) => {
const e = r.body;
expect(e).to.deep.equal({
.then(response => {
expect(response.body).to.deep.equal({
settings: {
onlyValidated: true,
onlySelected: [],
Expand All @@ -57,9 +56,8 @@ describe(packageJson.name, () => {
fooBar: 'fooBar',
})
.expect(200)
.then((r: any) => {
const e = r.body;
expect(e).to.deep.equal({
.then(response => {
expect(response.body).to.deep.equal({
timestamp: 1234567890123,
fooBar: 'fooBar',
});
Expand All @@ -73,9 +71,8 @@ describe(packageJson.name, () => {
settings: 'this is not valid json',
})
.expect(400)
.then((r: any) => {
const e = r.body;
expect(e.message).to.equal('request.query.settings should be object');
}),
.then(response => {
expect(response.body.message).to.equal('request.query.settings should be object');
})
);
});

0 comments on commit d073e34

Please sign in to comment.