-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature/enable debug from local storage (#81)
* add the local storage debug option * update PR template * fix integration test's container * fix lint suggestion
- Loading branch information
Showing
9 changed files
with
91 additions
and
34 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,18 @@ | ||
# Background | ||
## Description | ||
<!--- Explain why this PR has to be merged, what originated this feature, ... --> | ||
|
||
X | ||
## Solves ticket/s | ||
<!--- Optionally, add the tickets (jira, mantis, trello, ...) that are related to this PR --> | ||
|
||
# Goal | ||
## Expected behavior | ||
<!--- Add information of what's expected to happen when this is merged --> | ||
|
||
X | ||
## Review steps | ||
<!--- Nice to have, add the steps you've reproduced for a visual test in your development environment, or loc, consider adding screenshots ... --> | ||
|
||
# Implementation | ||
|
||
X | ||
|
||
# Further considerations | ||
|
||
X | ||
|
||
# Checklist | ||
|
||
- [ ] The PR relates to *only* one subject with a clear title. | ||
- [ ] I have performed a self-review of my own code | ||
- [ ] Wrote [good commit messages](http://chris.beams.io/posts/git-commit/) | ||
- [ ] My code is readable by someone else, and I commented the hard-to-understand areas | ||
- [ ] I have made corresponding changes to the documentation | ||
- [ ] I have added tests that prove my fix is effective or that my feature works | ||
## Further considerations | ||
<!--- If applies, add information of breaking changes, agreed deploy timings, ... --> | ||
|
||
## Memetized description | ||
<!--- Mandatory gif, try https://giphy.com/ --> | ||
![mandatory]() |
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
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
15 changes: 6 additions & 9 deletions
15
src/itest/openads/infrastructure/configuration/ContainerTest.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,18 @@ | ||
import Container from '../../../../openads/infrastructure/configuration/Container' | ||
import HTMLDOMDriver from '../../../../openads/infrastructure/service/HTMLDOMDriver' | ||
import {JSDOM} from 'jsdom' | ||
|
||
export default class ContainerTest extends Container { | ||
constructor({config, eager = true} = {}) { | ||
super({ | ||
config, | ||
eager: false, | ||
currentWindow: new HTMLDOMDriver({ | ||
dom: new JSDOM('<!DOCTYPE html><div id="forlayo">Hello world</div>') | ||
.window | ||
}) | ||
currentWindow: new JSDOM( | ||
'<!DOCTYPE html><div id="forlayo">Hello world</div>', | ||
{ | ||
url: 'http://localhost' | ||
} | ||
).window | ||
}) | ||
if (eager) super._buildEagerSingletonInstances() | ||
} | ||
|
||
_buildDOMDriver() { | ||
return this._currentWindow | ||
} | ||
} |
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
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
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
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
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