forked from andrew/node-lanyrd
/
test.js
34 lines (30 loc) · 799 Bytes
/
test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
var Lanyrd = require('./lanyrd')
var assert = require('assert');
describe("popular events", function() {
it("should load them", function(done) {
Lanyrd.popular(function(err, resp, events){
done(err);
})
});
})
describe("future events", function() {
it("should load them", function(done) {
Lanyrd.futureEvents('teabass', function(err, resp, events){
done(err);
})
});
})
describe("attendees", function() {
it("should load them", function(done) {
Lanyrd.attendees('hybridconf', '2013', function(err, resp, attendees){
done(err);
})
});
})
describe("search", function() {
it("should search for events with 'javascript' keyword", function(done) {
Lanyrd.search('javascript', function(err, resp, events) {
done(err);
});
});
})