Last active
January 14, 2016 20:32
-
-
Save rianby64/d998669d07f5582a186e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
loadFeature('features/simpleStory.feature'); | |
feature('Refund item', function() { | |
scenario(/(\w+) returns a faulty microwave/, function(user) { | |
given(/(\w+) has bought a microwave for \$(\d+)/, function(client, summa) { | |
}); | |
and('he has a receipt', function() { | |
}); | |
when('he returns the microwave', function() { | |
}); | |
then(/(\w+) should be refunded \$(\d+)/, function(client, summa) { | |
}); | |
}); | |
}); | |
var errors = run(); | |
if (errors.length) { | |
console.log(errors); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment