test-machinepack
Advanced tools
Comparing version 2.1.9 to 2.1.10
{ | ||
"name": "test-machinepack", | ||
"author": "Mike McNeil <@mikermcneil>", | ||
"version": "2.1.9", | ||
"version": "2.1.10", | ||
"description": "Raw test runner for machinepacks (also includes a simple stub test driver)", | ||
@@ -21,5 +21,5 @@ "keywords": [ | ||
"lodash": "3.9.1", | ||
"machine": "~11.0.3", | ||
"machine": "^12.2.1", | ||
"machinepack-machines": "6.3.0", | ||
"rttc": "~9.3.4" | ||
"rttc": "^9.4.0" | ||
}, | ||
@@ -26,0 +26,0 @@ "repository": { |
@@ -1,5 +0,3 @@ | ||
// TODO: pull this into mp-machines | ||
module.exports = require('machine').build({ | ||
var testMachine = { | ||
identity: 'test-machine', | ||
@@ -57,9 +55,14 @@ | ||
description: 'The return value could not be stringified into JSON - perhaps it contains circular references?', | ||
example: { | ||
message: 'Output returned by the `finglebär` machine\'s "foobar" exit could not be stringified...etc', | ||
outcome: 'success', | ||
output: '===', | ||
inspectedOutput: '{ stuff: "things" }', | ||
duration: 2948 | ||
} | ||
extendedDescription: | ||
'Note that we use the `===` exemplar here. This is necessary because it is the simplest '+ | ||
'way to represent `output: undefined`. Even if we set the `output` facet to `===`, since '+ | ||
'the base value for the ref type is `null` as of rttc@9.3.0, that wouldn\'t work either.', | ||
example: '===', | ||
// { | ||
// message: 'Output returned by the `finglebär` machine\'s "foobar" exit could not be stringified...etc', | ||
// outcome: 'success', | ||
// output: '===?', (but could also be undefined) | ||
// inspectedOutput: '{ stuff: "things" }', | ||
// duration: 2948 | ||
// } | ||
}, | ||
@@ -69,3 +72,8 @@ | ||
description: 'The test failed because the result was not the expected output and/or the expected outcome.', | ||
variableName: 'failureReport', | ||
outputFriendlyName: 'Failure report', | ||
extendedDescription: | ||
'Note that we use the `===` exemplar for `actual` here. This is necessary because it is '+ | ||
'the simplest way to represent `actual.output === undefined`. Even if we set the `output` '+ | ||
'facet to `===`, since the base value for the ref type is `null` as of rttc@9.3.0, that '+ | ||
'wouldn\'t work either.', | ||
example: { | ||
@@ -81,8 +89,9 @@ message: 'Expected outcome was "success" but actually the machine triggered its "error" exit.', | ||
}], | ||
actual: { | ||
outcome: 'success', | ||
output: '===', | ||
inspectedOutput: '{ stuff: "things" }', | ||
duration: 2948 | ||
} | ||
actual: '===', | ||
// { | ||
// outcome: 'success', | ||
// output: '===?' (but also could be `undefined`), | ||
// inspectedOutput: '{ stuff: "things" }', | ||
// duration: 2948 | ||
// } | ||
} | ||
@@ -93,9 +102,15 @@ }, | ||
description: 'The test was successful.', | ||
variableName: 'whatActuallyHappened', | ||
example: { | ||
outcome: 'success', | ||
output: '===', | ||
inspectedOutput: '{ stuff: "things" }', | ||
duration: 2948 | ||
} | ||
outputFriendlyName: 'What actually happened', | ||
outputDescription: 'A dictionary reporting the actual outcome, output, duration, etc.', | ||
extendedDescription: | ||
'Note that we use the `===` exemplar here. This is necessary because it is the simplest '+ | ||
'way to represent `output: undefined`. Even if we set the `output` facet to `===`, since '+ | ||
'the base value for the ref type is `null` as of rttc@9.3.0, that wouldn\'t work either.', | ||
example: '===', | ||
// { | ||
// outcome: 'success', | ||
// output: '===?' (but also could be `undefined`), | ||
// inspectedOutput: '{ stuff: "things" }', | ||
// duration: 2948 | ||
// } | ||
} | ||
@@ -383,5 +398,2 @@ | ||
}; | ||
var Machine = require('machine'); | ||
module.exports = Machine.build(testMachine); | ||
}); |
36897
727
+ Addedconvert-to-ecmascript-compatible-varname@0.1.4(transitive)
+ Addeddebug@2.2.0(transitive)
+ Addedlodash@2.4.23.10.1(transitive)
+ Addedmachine@12.4.0(transitive)
+ Addedms@0.7.1(transitive)
+ Addedrttc@9.8.2(transitive)
+ Addedswitchback@2.0.0(transitive)
- Removedconvert-to-ecmascript-compatible-varname@0.1.5(transitive)
- Removeddebug@2.6.9(transitive)
- Removedlodash@3.8.0(transitive)
- Removedms@2.0.0(transitive)
- Removedrttc@9.3.4(transitive)
- Removedswitchback@2.0.5(transitive)
Updatedmachine@^12.2.1
Updatedrttc@^9.4.0