Created
May 27, 2014 21:01
-
-
Save conner/23e04c236a8e5d89cbee to your computer and use it in GitHub Desktop.
defining global jasmine matchers in protractor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// --- from protractor conf.js | |
onPrepare: function() { | |
beforeEach(function() { | |
// things to do before every run | |
this.addMatchers({ | |
customMatcher: function() { | |
// custom matcher codez | |
} | |
}); | |
}); | |
afterEach(function() { | |
// things to do after every tun | |
}); | |
// other prep work (publish globals, test output config, etc) | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment