mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-22 11:57:33 +08:00
Added verification that optional parameters work
Added verification that optional parameters work for toHaveAttr() and toHaveProp().
This commit is contained in:
@@ -16,7 +16,9 @@ describe("Jasmine jQuery extension", () => {
|
||||
expect($('<span></span>').addClass('js-something')).toBeMatchedBy('.js-something');
|
||||
expect($('<span></span>')).toExist();
|
||||
expect($('<div id="some-id"></div>')).toHaveAttr('id', 'some-id');
|
||||
expect($('<input type="checkbox" checked="checked"/>')).toHaveAttr('type');
|
||||
expect($('<div id="some-id"></div>')).toHaveProp('id', 'some-id');
|
||||
expect($('<input type="checkbox" checked="checked"/>')).toHaveProp('checked');
|
||||
expect($('')).toHaveBeenTriggered();
|
||||
expect($('')).toHaveBeenTriggeredOn('#some-id');
|
||||
expect($('')).toHaveBeenTriggeredOnAndWith('#some-id', 'eventParam');
|
||||
@@ -132,4 +134,4 @@ describe("Jasmine jQuery extension", () => {
|
||||
expect(spyEvent).toHaveBeenStopped();
|
||||
});
|
||||
});
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user