File tree Expand file tree Collapse file tree 1 file changed +20
-2
lines changed
javascript/node/selenium-webdriver/testing Expand file tree Collapse file tree 1 file changed +20
-2
lines changed Original file line number Diff line number Diff line change @@ -39,5 +39,23 @@ var base = require('../_base'),
39
39
// PUBLIC API
40
40
41
41
42
- /** @type {webdriver.testing.assert. } */
43
- module . exports = assert ;
42
+ /**
43
+ * Creates a new assertion.
44
+ * @param {* } value The value to perform an assertion on.
45
+ * @return {!webdriver.testing.Assertion } The new assertion.
46
+ */
47
+ module . exports = function ( value ) {
48
+ return assert ( value ) ;
49
+ } ;
50
+
51
+
52
+ /**
53
+ * Registers a new assertion to expose from the
54
+ * {@link webdriver.testing.Assertion} prototype.
55
+ * @param {string } name The assertion name.
56
+ * @param {(function(new: goog.labs.testing.Matcher, *)|
57
+ * {matches: function(*): boolean,
58
+ * describe: function(): string})} matcherTemplate Either the
59
+ * matcher constructor to use, or an object literal defining a matcher.
60
+ */
61
+ module . exports . register = assert . register ;
You can’t perform that action at this time.
0 commit comments