Skip to content

Commit f0f1e17

Browse files
authored
Vision snippets. (GoogleCloudPlatform#294)
1 parent 66dcad8 commit f0f1e17

File tree

78 files changed

+1440
-325
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+1440
-325
lines changed

Diff for: appengine/analytics/test/app.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function getSample () {
5353
}
5454

5555
test.beforeEach(stubConsole);
56-
test.afterEach(restoreConsole);
56+
test.afterEach.always(restoreConsole);
5757

5858
test.cb(`should record a visit`, (t) => {
5959
const sample = getSample();

Diff for: appengine/bower/test/server.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function getSample () {
4141
}
4242

4343
test.beforeEach(stubConsole);
44-
test.afterEach(restoreConsole);
44+
test.afterEach.always(restoreConsole);
4545

4646
test.cb(`should render a page`, (t) => {
4747
const sample = getSample();

Diff for: appengine/cloudsql/test/createTables.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function getSample () {
5757
}
5858

5959
test.beforeEach(stubConsole);
60-
test.afterEach(restoreConsole);
60+
test.afterEach.always(restoreConsole);
6161

6262
test.cb.serial(`should record a visit`, (t) => {
6363
const sample = getSample();

Diff for: appengine/cloudsql/test/server.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function getSample () {
6060
}
6161

6262
test.beforeEach(stubConsole);
63-
test.afterEach(restoreConsole);
63+
test.afterEach.always(restoreConsole);
6464

6565
test(`sets up sample`, (t) => {
6666
const sample = getSample();

Diff for: appengine/datastore/test/app.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ function getSample () {
7676
}
7777

7878
test.beforeEach(stubConsole);
79-
test.afterEach(restoreConsole);
79+
test.afterEach.always(restoreConsole);
8080

8181
test(`sets up sample`, (t) => {
8282
const sample = getSample();

Diff for: appengine/disk/test/app.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function getSample () {
5252
}
5353

5454
test.beforeEach(stubConsole);
55-
test.afterEach(restoreConsole);
55+
test.afterEach.always(restoreConsole);
5656

5757
test(`sets up the sample`, (t) => {
5858
const sample = getSample();

Diff for: appengine/endpoints/test/app.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function getSample () {
4141
}
4242

4343
test.beforeEach(stubConsole);
44-
test.afterEach(restoreConsole);
44+
test.afterEach.always(restoreConsole);
4545

4646
test(`sets up the sample`, (t) => {
4747
const sample = getSample();

Diff for: appengine/errorreporting/test/app.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function getSample () {
5353
}
5454

5555
test.beforeEach(stubConsole);
56-
test.afterEach(restoreConsole);
56+
test.afterEach.always(restoreConsole);
5757

5858
test(`sets up the sample`, (t) => {
5959
const sample = getSample();

Diff for: appengine/express-memcached-session/test/server.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ function getSample () {
5252
}
5353

5454
test.beforeEach(stubConsole);
55-
test.afterEach(restoreConsole);
55+
test.afterEach.always(restoreConsole);
5656

5757
test(`sets up the sample`, (t) => {
5858
const sample = getSample();

Diff for: appengine/express/test/app.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function getSample () {
3232
}
3333

3434
test.beforeEach(stubConsole);
35-
test.afterEach(restoreConsole);
35+
test.afterEach.always(restoreConsole);
3636

3737
test.cb(`should render index page`, (t) => {
3838
const sample = getSample();

Diff for: appengine/loopback/package.json

+12-12
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@
1515
"posttest": "npm run lint && nsp check"
1616
},
1717
"dependencies": {
18-
"compression": "^1.0.3",
19-
"cors": "^2.5.2",
20-
"helmet": "^1.3.0",
21-
"loopback-boot": "^2.6.5",
22-
"loopback-component-explorer": "^2.4.0",
23-
"serve-favicon": "^2.0.1",
24-
"strong-error-handler": "^1.0.1",
25-
"loopback-datasource-juggler": "^2.39.0",
26-
"loopback": "^2.22.0"
18+
"compression": "1.0.3",
19+
"cors": "2.5.2",
20+
"helmet": "1.3.0",
21+
"loopback-boot": "2.6.5",
22+
"loopback-component-explorer": "2.4.0",
23+
"serve-favicon": "2.0.1",
24+
"strong-error-handler": "1.0.1",
25+
"loopback-datasource-juggler": "2.39.0",
26+
"loopback": "2.22.0"
2727
},
2828
"devDependencies": {
29-
"eslint": "^2.13.1",
30-
"eslint-config-loopback": "^4.0.0",
31-
"nsp": "^2.1.0"
29+
"eslint": "2.13.1",
30+
"eslint-config-loopback": "4.0.0",
31+
"nsp": "2.1.0"
3232
}
3333
}

0 commit comments

Comments
 (0)