mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
19 lines
547 B
JavaScript
19 lines
547 B
JavaScript
angular.scenarioDef.datastore = {
|
|
$before:[
|
|
{Given:"dataset",
|
|
dataset:{
|
|
Book:[{$id:'moby', name:"Moby Dick"},
|
|
{$id:'gadsby', name:'Great Gadsby'}]
|
|
}
|
|
},
|
|
{Given:"browser", at:"datastore.html#book=moby"},
|
|
],
|
|
checkLoadBook:[
|
|
{Then:"drainRequestQueue"},
|
|
|
|
{Then:"text", at:"{{book.$id}}", should_be:"moby"},
|
|
{Then:"text", at:"li[$index=0] {{book.name}}", should_be:"Great Gahdsby"},
|
|
{Then:"text", at:"li[$index=0] {{book.name}}", should_be:"Moby Dick"},
|
|
|
|
]
|
|
};
|