Skip to content

Commit f435765

Browse files
authored
docs(samples): revert integration test fix, is working again (#416)
1 parent 1a9fa17 commit f435765

File tree

1 file changed

+2
-8
lines changed
  • packages/google-cloud-phishingprotection/samples/test

1 file changed

+2
-8
lines changed

packages/google-cloud-phishingprotection/samples/test/quickstart.js

+2-8
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,7 @@ const URI = 'http://testsafebrowsing.appspot.com/s/phishing.html';
2828

2929
describe('Quickstart', () => {
3030
it('should run quickstart', async () => {
31-
try {
32-
execSync(`node ./quickstart.js ${URI} ${PROJECT_ID}`, {
33-
cwd,
34-
});
35-
assert('unreachable');
36-
} catch (err) {
37-
assert.match(err.message, /ALREADY_EXISTS/);
38-
}
31+
const stdout = execSync(`node ./quickstart.js ${URI} ${PROJECT_ID}`, {cwd});
32+
assert.include(stdout, 'reported');
3933
});
4034
});

0 commit comments

Comments
 (0)