We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a9fa17 commit f435765Copy full SHA for f435765
packages/google-cloud-phishingprotection/samples/test/quickstart.js
@@ -28,13 +28,7 @@ const URI = 'http://testsafebrowsing.appspot.com/s/phishing.html';
28
29
describe('Quickstart', () => {
30
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
- }
+ const stdout = execSync(`node ./quickstart.js ${URI} ${PROJECT_ID}`, {cwd});
+ assert.include(stdout, 'reported');
39
});
40
0 commit comments