mirror of
https://github.com/BorysLevytskyi/BitwiseCmd.git
synced 2026-01-19 10:22:41 +01:00
Implemented e2e tests
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user