@atomist/rug
Advanced tools
Comparing version 0.22.0 to 0.23.0
@@ -22,3 +22,2 @@ /* | ||
export { ArtifactContainer }; | ||
/* | ||
@@ -25,0 +24,0 @@ * ArtifactContainer |
@@ -21,3 +21,2 @@ /* | ||
export { BodyDeclarationView }; | ||
/* | ||
@@ -24,0 +23,0 @@ * BodyDeclarationView |
@@ -21,3 +21,2 @@ /* | ||
export { BuildViewMutatingFunctions }; | ||
/* | ||
@@ -24,0 +23,0 @@ * BuildViewMutatingFunctions |
@@ -21,3 +21,2 @@ /* | ||
export { BuildViewNonMutatingFunctions }; | ||
/* | ||
@@ -24,0 +23,0 @@ * BuildViewNonMutatingFunctions |
@@ -21,3 +21,2 @@ /* | ||
export { ChangeLogging }; | ||
/* | ||
@@ -24,0 +23,0 @@ * ChangeLogging |
@@ -21,3 +21,2 @@ /* | ||
export { CommonViewOperations }; | ||
/* | ||
@@ -24,0 +23,0 @@ * CommonViewOperations |
@@ -21,3 +21,2 @@ /* | ||
export { ContainerTreeNodeView }; | ||
/* | ||
@@ -24,0 +23,0 @@ * ContainerTreeNodeView |
@@ -24,3 +24,2 @@ /* | ||
export { CSharpFile }; | ||
/* | ||
@@ -27,0 +26,0 @@ * C# file |
@@ -23,3 +23,2 @@ /* | ||
export { Directory }; | ||
/* | ||
@@ -26,0 +25,0 @@ * Type for a directory within a project. |
@@ -23,3 +23,2 @@ /* | ||
export { DockerFile }; | ||
/* | ||
@@ -26,0 +25,0 @@ * Docker file type |
@@ -27,3 +27,2 @@ /* | ||
export { EveryPom }; | ||
/* | ||
@@ -30,0 +29,0 @@ * POM XML file |
@@ -23,3 +23,2 @@ /* | ||
export { File }; | ||
/* | ||
@@ -26,0 +25,0 @@ * Type for a file within a project. |
@@ -21,3 +21,2 @@ /* | ||
export { FileArtifactBacked }; | ||
/* | ||
@@ -24,0 +23,0 @@ * FileArtifactBacked |
@@ -21,3 +21,2 @@ /* | ||
export { FormatInfoProvider }; | ||
/* | ||
@@ -24,0 +23,0 @@ * FormatInfoProvider |
@@ -24,3 +24,2 @@ /* | ||
export { JavaClassOrInterface }; | ||
/* | ||
@@ -27,0 +26,0 @@ * Java class or interface |
@@ -23,3 +23,2 @@ /* | ||
export { JavaConstructor }; | ||
/* | ||
@@ -26,0 +25,0 @@ * Java constructor |
@@ -24,3 +24,2 @@ /* | ||
export { JavaField }; | ||
/* | ||
@@ -27,0 +26,0 @@ * Java field |
@@ -24,3 +24,2 @@ /* | ||
export { JavaFile }; | ||
/* | ||
@@ -27,0 +26,0 @@ * Java file |
@@ -23,3 +23,2 @@ /* | ||
export { JavaMethod }; | ||
/* | ||
@@ -26,0 +25,0 @@ * Java method |
@@ -24,3 +24,2 @@ /* | ||
export { JavaProject }; | ||
/* | ||
@@ -27,0 +26,0 @@ * Java project |
@@ -24,3 +24,2 @@ /* | ||
export { JavaSource }; | ||
/* | ||
@@ -27,0 +26,0 @@ * Java source file |
@@ -24,3 +24,2 @@ /* | ||
export { JavaType }; | ||
/* | ||
@@ -27,0 +26,0 @@ * Java class |
@@ -24,3 +24,2 @@ /* | ||
export { Line }; | ||
/* | ||
@@ -27,0 +26,0 @@ * Represents a line within a text file |
@@ -24,3 +24,2 @@ /* | ||
export { MutableContainer }; | ||
/* | ||
@@ -27,0 +26,0 @@ * Generic container |
@@ -21,3 +21,2 @@ /* | ||
export { MutableTerminal }; | ||
/* | ||
@@ -24,0 +23,0 @@ * Updatable terminal node |
@@ -21,3 +21,2 @@ /* | ||
export { MutableView }; | ||
/* | ||
@@ -24,0 +23,0 @@ * MutableView |
@@ -21,3 +21,2 @@ /* | ||
export { OverwritableText }; | ||
/* | ||
@@ -24,0 +23,0 @@ * Generic text container |
@@ -23,3 +23,2 @@ /* | ||
export { Pair }; | ||
/* | ||
@@ -26,0 +25,0 @@ * JSON pair |
@@ -27,3 +27,2 @@ /* | ||
export { Pom }; | ||
/* | ||
@@ -30,0 +29,0 @@ * POM XML file |
@@ -21,3 +21,2 @@ /* | ||
export { PomMutableViewMutatingFunctions }; | ||
/* | ||
@@ -24,0 +23,0 @@ * PomMutableViewMutatingFunctions |
@@ -21,3 +21,2 @@ /* | ||
export { PomMutableViewNonMutatingFunctions }; | ||
/* | ||
@@ -24,0 +23,0 @@ * PomMutableViewNonMutatingFunctions |
@@ -22,3 +22,2 @@ /* | ||
export { Project }; | ||
/* | ||
@@ -25,0 +24,0 @@ * Project |
@@ -21,3 +21,2 @@ /* | ||
export { ProjectDecorating }; | ||
/* | ||
@@ -24,0 +23,0 @@ * ProjectDecorating |
@@ -23,3 +23,2 @@ /* | ||
export { Properties }; | ||
/* | ||
@@ -26,0 +25,0 @@ * Java properties file |
@@ -24,3 +24,2 @@ /* | ||
export { PythonFile }; | ||
/* | ||
@@ -27,0 +26,0 @@ * Python file |
@@ -24,3 +24,2 @@ /* | ||
export { ScalaFile }; | ||
/* | ||
@@ -27,0 +26,0 @@ * Scala file |
@@ -24,3 +24,2 @@ /* | ||
export { SpringBootProject }; | ||
/* | ||
@@ -27,0 +26,0 @@ * Spring Boot project |
@@ -21,3 +21,2 @@ /* | ||
export { TypeDeclarationView }; | ||
/* | ||
@@ -24,0 +23,0 @@ * TypeDeclarationView |
@@ -21,3 +21,2 @@ /* | ||
export { ViewSupport }; | ||
/* | ||
@@ -24,0 +23,0 @@ * ViewSupport |
@@ -21,3 +21,2 @@ /* | ||
export { Xml }; | ||
/* | ||
@@ -24,0 +23,0 @@ * Xml |
@@ -24,3 +24,2 @@ /* | ||
export { XmlFile }; | ||
/* | ||
@@ -27,0 +26,0 @@ * XML file |
@@ -24,3 +24,2 @@ /* | ||
export { YamlFile }; | ||
/* | ||
@@ -27,0 +26,0 @@ * YAML file |
{ | ||
"name": "@atomist/rug", | ||
"version": "0.22.0", | ||
"version": "0.23.0", | ||
"description": "TypeScript model for Atomist editors, generators etc", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -74,9 +74,15 @@ import { ScenarioWorld } from "../ScenarioWorld" | ||
// Callback for given and when steps | ||
type SetupCallback = (HandlerScenarioWorld, ...args) => void | ||
type ThenCallback = (HandlerScenarioWorld?, ...args) => Result | boolean | void | ||
interface Definitions { | ||
Given(s: string, f: (Project, HandlerScenarioWorld?, ...args) => void): void | ||
Given(s: string, f: SetupCallback): void | ||
When(s: string, f: (Project, HandlerScenarioWorld?, ...args) => void): void | ||
When(s: string, f: SetupCallback): void | ||
Then(s: string, f: (Project, HandlerScenarioWorld?, ...args) => Result | boolean | void): void | ||
Then(s: string, f: ThenCallback): void | ||
@@ -88,11 +94,10 @@ } | ||
export function Given(s: string, f: (Project, HandlerScenarioWorld?, ...args) => void) { | ||
export function Given(s: string, f: SetupCallback) { | ||
com_atomist_rug_test_gherkin_GherkinRunner$_definitions.Given(s, f) | ||
} | ||
export function When(s: string, f: (Project, HandlerScenarioWorld?, ...args) => void) { | ||
export function When(s: string, f: SetupCallback) { | ||
com_atomist_rug_test_gherkin_GherkinRunner$_definitions.When(s, f) | ||
} | ||
/** | ||
@@ -105,3 +110,3 @@ * A Then step can return a Result object, containing a result and details, | ||
*/ | ||
export function Then(s: string, f: (Project, HandlerScenarioWorld?, ...args) => Result | boolean | void) { | ||
export function Then(s: string, f: ThenCallback) { | ||
com_atomist_rug_test_gherkin_GherkinRunner$_definitions.Then(s, f) | ||
@@ -108,0 +113,0 @@ } |
"use strict"; | ||
var Core_1 = require("./Core"); | ||
// Register well-known steps | ||
Core_1.Then("parameters were invalid", function (p, world) { return world.invalidParameters() != null; }); | ||
Core_1.Then("plan has no messages", function (p, world) { | ||
Core_1.Then("parameters were invalid", function (world) { | ||
return world.invalidParameters() != null; | ||
}); | ||
Core_1.Then("plan has no messages", function (world) { | ||
return world.plan().messages().length == 0; | ||
}); |
@@ -5,7 +5,8 @@ import {Given, When, Then} from "./Core" | ||
Then("parameters were invalid", | ||
(p, world) => world.invalidParameters() != null) | ||
Then("parameters were invalid", world => | ||
world.invalidParameters() != null | ||
) | ||
Then("plan has no messages", (p,world) => { | ||
Then("plan has no messages", world => { | ||
return world.plan().messages().length == 0 | ||
}) |
6302
260757