Skip to content

Commit

Permalink
Fix linting errors for scheduleinstance code sample
Browse files Browse the repository at this point in the history
  • Loading branch information
djmailhot committed Nov 5, 2018
1 parent 9ca252a commit 77a6495
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions functions/scheduleinstance/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function getMocks () {
test.beforeEach(tools.stubConsole);
test.afterEach.always(tools.restoreConsole);

/////////////////////////// startInstanceHttp //////////////////////////////
/** Tests for startInstanceHttp */

test(`startInstanceHttp: should accept application/json`, async (t) => {
const mocks = getMocks();
Expand Down Expand Up @@ -208,7 +208,7 @@ test(`startInstanceHttp: should fail with empty request body`, async (t) => {
t.deepEqual(mocks.res.send.firstCall.args[0], {error: `Attribute 'zone' missing from payload`});
});

/////////////////////////// stopInstanceHttp //////////////////////////////
/** Tests for stopInstanceHttp */

test(`stopInstanceHttp: should accept application/json`, async (t) => {
const mocks = getMocks();
Expand Down Expand Up @@ -336,7 +336,7 @@ test(`stopInstanceHttp: should fail with empty request body`, async (t) => {
t.deepEqual(mocks.res.send.firstCall.args[0], {error: `Attribute 'zone' missing from payload`});
});

/////////////////////////// startInstancePubSub //////////////////////////////
/** Tests for startInstancePubSub */

test(`startInstancePubSub: should accept JSON-formatted event payload`, async (t) => {
const mocks = getMocks();
Expand Down Expand Up @@ -382,7 +382,7 @@ test(`startInstancePubSub: should fail with empty event payload`, async (t) => {
t.deepEqual(mocks.callback.firstCall.args[0], new Error(`Attribute 'zone' missing from payload`));
});

/////////////////////////// stopInstancePubSub //////////////////////////////
/** Tests for stopInstancePubSub */

test(`stopInstancePubSub: should accept JSON-formatted event payload`, async (t) => {
const mocks = getMocks();
Expand Down

0 comments on commit 77a6495

Please sign in to comment.