Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added meaningful Jasmine test

commit 37ae2d3577a2e84d0aab744e49873119260246d5 1 parent 26dc3c6
@arthurakay arthurakay authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 unit-tests/app/MeetupApiUtil.js
View
8 unit-tests/app/MeetupApiUtil.js
@@ -10,6 +10,14 @@ describe('ChicagoMeetup.MeetupApiUtil', function() {
expect(typeof ChicagoMeetup.MeetupApiUtil.getUsersUrl()).toEqual('string');
});
+ it('should correctly encode the event ID', function() {
+ var regExp = /event_id=12345/g;
+ var eventId = 12345;
+ var url = ChicagoMeetup.MeetupApiUtil.getUsersUrl(eventId);
+
+ expect(regExp.test(url)).toEqual(true);
+ });
+
});
describe('getPastEventsUrl() method', function() {
Please sign in to comment.
Something went wrong with that request. Please try again.