Permalink
Browse files

added a test for getTerms

  • Loading branch information...
1 parent 15725f2 commit 983893bf98f677c5e160790b646673fd52c556ec @tarekziade tarekziade committed Feb 12, 2013
Showing with 10 additions and 0 deletions.
  1. +10 −0 monolith/tests/client.js
View
10 monolith/tests/client.js
@@ -9,8 +9,18 @@ describe("Utils suite", function() {
var total = result.hits.total;
expect(total).toBe(3100);
});
+
+ it("'getTerms'", function() {
+
+ result = getTerms("http://0.0.0.0:9998/_search", "os");
+ var wanted = ['Windows 8', 'Mac OS X', 'Ubuntu'];
+
+ expect(result).toEqual(wanted);
+ });
+
});
+

0 comments on commit 983893b

Please sign in to comment.