@pulumi/pulumi
Advanced tools
Comparing version 0.11.0-dev-135-gb4a3a268 to 0.11.0-dev-143-g315ae8b8
{ | ||
"name": "@pulumi/pulumi", | ||
"version": "0.11.0-dev-135-gb4a3a268", | ||
"version": "0.11.0-dev-143-g315ae8b8", | ||
"description": "Pulumi's Node.js SDK", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/pulumi/pulumi/sdk/nodejs", |
export declare type MochaFunc = (err: Error) => void; | ||
export declare function asyncTest(test: () => Promise<void>): (func: MochaFunc) => void; | ||
export declare function assertAsyncThrows(test: () => Promise<void>): Promise<void>; | ||
export declare function assertAsyncThrows(test: () => Promise<void>): Promise<string>; |
@@ -36,3 +36,2 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
let thrown = false; | ||
try { | ||
@@ -42,7 +41,8 @@ yield test(); | ||
catch (err) { | ||
thrown = true; | ||
return err.message; | ||
} | ||
assert(thrown, "Function was expected to throw, but didn't"); | ||
assert(false, "Function was expected to throw, but didn't"); | ||
return ""; | ||
}); | ||
} | ||
exports.assertAsyncThrows = assertAsyncThrows; |
"use strict"; | ||
// Copyright 2016-2017, Pulumi Corporation. All rights reserved. | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.version = "0.11.0-dev-135-gb4a3a268"; | ||
exports.version = "0.11.0-dev-143-g315ae8b8"; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
542883
13980