Comparing version 0.0.5 to 0.0.6
@@ -28,2 +28,3 @@ 'use strict' | ||
} | ||
return actor | ||
}, | ||
@@ -90,5 +91,3 @@ asks: async question => { | ||
) | ||
const handler = perspective[id](params) | ||
if (!handler) throw new Error(`No handler for: ${id} (${action})`) | ||
return handler | ||
return perspective[id](params) | ||
}, | ||
@@ -95,0 +94,0 @@ } |
@@ -265,2 +265,8 @@ 'use strict' | ||
it('returns the actor when you attempt a task', async () => { | ||
const joe = Actor(Perspective(), { }) | ||
const result = await joe.attemptsTo(() => {}) | ||
assert.equal(result, joe) | ||
}) | ||
it('waits for async interactions to complete', async () => { | ||
@@ -267,0 +273,0 @@ const db = { |
{ | ||
"name": "feynman", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "A screenplay pattern library for javascript", | ||
@@ -5,0 +5,0 @@ "main": "lib/feynman.js", |
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
32297593
14
403