Skip to content

Commit

Permalink
add TODO as a reminder in book list array test
Browse files Browse the repository at this point in the history
  • Loading branch information
jonfriskics committed Feb 14, 2018
1 parent 0c9794d commit 622102e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ describe('BookList.vue', () => {

// Test for correct import statement
const ast = esprima.parse(script[0].childNodes[0].value, { sourceType: 'module' });
const results = esquery(ast, 'ExportDefaultDeclaration Property[key.name="books"] Property[value.value="American Gods"]')

// TODO: add extra assert to check if the array is in data() first, then after that assert passes let these tests run to check the properties.
const results = esquery(ast, 'ExportDefaultDeclaration Property[key.name=data] Property[key.name="books"] Property[value.value="American Gods"]')
assert(results.length > 0, 'The book with a title of American Gods is not in your books array');
});
});

0 comments on commit 622102e

Please sign in to comment.