Skip to content

Commit

Permalink
Add annotations test
Browse files Browse the repository at this point in the history
  • Loading branch information
pboyd04 committed Nov 22, 2016
1 parent d566ce2 commit df3c720
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ module.exports.search = function(assert) {
assert.equal(favoriteAirline[0].Name, 'GetFavoriteAirline');
assert.equal(favoriteAirline[0].IsBound, true);

var annotations = csdl.search(metadata, 'Annotation', 'Org.OData.Core.V1.OptimisticConcurrency');
assert.notEqual(annotations[0], undefined);
assert.notEqual(annotations[0].Collection, undefined);

annotations = csdl.search(metadata, 'Annotation');
assert.notEqual(annotations[0], undefined);
assert.notEqual(annotations[0].Collection, undefined);

assert.done();
});
}
Expand Down

0 comments on commit df3c720

Please sign in to comment.