Implemented e2e tests

This commit is contained in:
Borys Levytskyi
2015-04-15 21:26:09 +03:00
parent 8e30d2f899
commit 1ed28a7bb0
4 changed files with 58 additions and 5 deletions

View File

@@ -22,6 +22,13 @@ describe('hash arguments parser', function() {
expect(args.commands).toEqual(['1|2', '1^2', '~2']);
});
it('should parse multiple commands with clear', function() {
var args = hash.getArgs('#clear||16,15||16&15');
expect(args).not.toBe(null);
expect(args).toBeDefined();
expect(args.commands).toEqual(['clear', '16 15', '16&15']);
});
it('should parse multiple commands url encoded', function() {
var args = hash.getArgs('#' + encodeURI('1|2||1^2||~2'));
expect(args).not.toBe(null);
@@ -47,4 +54,6 @@ describe('hash arguments parser', function() {
expect(args.debug).toBe(true);
});
});