Skip to content

Commit df3c720

Browse files
committed
Add annotations test
1 parent d566ce2 commit df3c720

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/search.js

+8
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ module.exports.search = function(assert) {
1515
assert.equal(favoriteAirline[0].Name, 'GetFavoriteAirline');
1616
assert.equal(favoriteAirline[0].IsBound, true);
1717

18+
var annotations = csdl.search(metadata, 'Annotation', 'Org.OData.Core.V1.OptimisticConcurrency');
19+
assert.notEqual(annotations[0], undefined);
20+
assert.notEqual(annotations[0].Collection, undefined);
21+
22+
annotations = csdl.search(metadata, 'Annotation');
23+
assert.notEqual(annotations[0], undefined);
24+
assert.notEqual(annotations[0].Collection, undefined);
25+
1826
assert.done();
1927
});
2028
}

0 commit comments

Comments
 (0)