Skip to content

Commit

Permalink
fixing description of test
Browse files Browse the repository at this point in the history
  • Loading branch information
balmas committed Dec 19, 2014
1 parent 631d0b1 commit 05b8e92
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions spec/arethusa/treebank_retriever_spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,15 @@ describe('TreebankRetriever', function() {
});

// Test that namespaced treebank files are also okay
it('fails when a treebank is namespace prefixed', function() {
// But not that this test is of limited value due to
// https://github.com/ariya/phantomjs/issues/10428
it('succeeds when a treebank is namespace prefixed', function() {
var tb = toNsTreebank([[1, [[1, 'a']]]]);
retriever.parse(tb, callback);

var tokenIds = Object.keys(result[0].tokens);
var s1 = result[0];
expect(tokenIds.length).toEqual(1); // nothing parsed
expect(tokenIds.length).toEqual(1);
expect(s1.id).toBeDefined();
expect(s1.tokens[tokenIds[0]].string).toEqual('a');
});
Expand Down

0 comments on commit 05b8e92

Please sign in to comment.