@betterer/betterer
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -42,5 +42,5 @@ import { BettererExpectedResult, NO_PREVIOUS_RESULT } from '../results'; | ||
start(): number; | ||
same(): void; | ||
same(result: unknown): void; | ||
skipped(): void; | ||
worse(result: unknown): void; | ||
} |
@@ -197,6 +197,7 @@ "use strict"; | ||
}; | ||
BettererRun.prototype.same = function () { | ||
BettererRun.prototype.same = function (result) { | ||
assert.equal(this._status, BettererRunStatus.pending); | ||
this._status = BettererRunStatus.same; | ||
this._result = this._expected; | ||
this._result = result; | ||
this._toPrint = result; | ||
this._hasResult = true; | ||
@@ -203,0 +204,0 @@ this._context.runSame(this); |
@@ -15,3 +15,3 @@ import { BettererConfigPartial } from './config'; | ||
resultsPath: string; | ||
filters: string | import("./config").BettererConfigFilters | readonly string[]; | ||
filters: string | readonly string[] | import("./config").BettererConfigFilters; | ||
ignores: string | import("./config").BettererConfigIgnore; | ||
@@ -24,3 +24,3 @@ cwd: string; | ||
resultsPath: string; | ||
filters: string | import("./config").BettererConfigFilters | readonly string[]; | ||
filters: string | readonly string[] | import("./config").BettererConfigFilters; | ||
ignores: string | import("./config").BettererConfigIgnore; | ||
@@ -27,0 +27,0 @@ cwd: string; |
@@ -105,3 +105,3 @@ "use strict"; | ||
if (comparison === constraints_1.ConstraintResult.same) { | ||
run.same(); | ||
run.same(result); | ||
return [2 /*return*/]; | ||
@@ -108,0 +108,0 @@ } |
{ | ||
"name": "@betterer/betterer", | ||
"description": "Main engine for runing betterer tests", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"license": "MIT", | ||
@@ -40,3 +40,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "64af60941a04ac7a022f4ddc937e1aec26bb7bc0" | ||
"gitHead": "bb3663bbe9559980d56f5dc2ad0722c7a5b8b792" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
159298
2388