mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-13 12:22:02 +08:00
Added verification that optional parameters work
Added verification that optional parameters work for toHaveAttr() and toHaveProp().
This commit is contained in:
1 parent
9667573da9
commit
e1295fdd8b
1 file changed
+3
-1
@@ -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