You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix lint errors
* update browser versions
* remove problematic test cases
* remove addtional files
* fix errors in adagioBidAdapter.js and adagioBidAdapter_spec.js file
* change karma config
* change config
* update timeout values
* resolve merge conflict
* -update karma\n-fix userIdSpec unit tests\n-update version of karma-browserstack-launcher to 1.4.0
* fix issue with userId_spec.js file
* fix for realvu and sortable, potential fix for userId
* resolve faulty merge
* add a guideline to CONTRIBUGING.md and revert auction time back in userId_spec.js file
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -51,6 +51,7 @@ When you are adding code to Prebid.js, or modifying code that isn't covered by a
51
51
- If you need to check `adloader.loadExternalScript` in a test, use a `stub` rather than a `spy`. `spy`s trigger a network call which can result in a `script error` and cause unrelated unit tests to fail. `stub`s will let you gather information about the `adloader.loadExternalScript` call without affecting external resources
52
52
- If your test makes ajax requests, use the global xhr stub in `test/mocks/xhr`. Do not use your own `sinon.useFakeXMLHttpRequest()` or `sinon.createFakeServer()`.
53
53
- When writing tests you may use ES2015 syntax if desired
54
+
- If your test relies on `Window` or `global` object, do not mutate that object directly. Instead, create a separate copy of that object and perform operations on that new copy.
54
55
55
56
### Test Examples
56
57
Prebid.js already has many tests. Read them to see how Prebid.js is tested, and for inspiration:
0 commit comments