forked from uber-archive/vis-academy
-
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.
revisions on testing, update on images (uber-archive#40)
- Loading branch information
Showing
36 changed files
with
100 additions
and
138 deletions.
There are no files selected for viewing
1 change: 0 additions & 1 deletion
1
src/demos/testing-a-geospatial-app/1-smoke-screens/src/test/index.js
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
src/demos/testing-a-geospatial-app/1-smoke-tests/src/test/index.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 |
---|---|---|
@@ -0,0 +1 @@ | ||
import './smoke-tests'; |
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
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
src/demos/testing-a-geospatial-app/2-code-coverage/src/test/index.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 +1 @@ | ||
import './smoke-screens'; | ||
import './smoke-tests'; |
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
2 changes: 1 addition & 1 deletion
2
src/demos/testing-a-geospatial-app/3-testing-ui/src/test/index.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,2 +1,2 @@ | ||
import "./components"; | ||
import "./smoke-screens"; | ||
import "./smoke-tests"; |
31 changes: 5 additions & 26 deletions
31
src/demos/testing-a-geospatial-app/3-testing-ui/src/test/setup-browser-env.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,30 +1,9 @@ | ||
/* setup.js */ | ||
import "babel-polyfill"; | ||
const { JSDOM } = require("jsdom"); | ||
const Adapter = require("enzyme-adapter-react-15"); | ||
const { configure } = require("enzyme"); | ||
import 'babel-polyfill'; | ||
import JSDOM from 'jsdom'; | ||
const Adapter = require('enzyme-adapter-react-15'); | ||
const { configure } = require('enzyme'); | ||
|
||
const jsdom = new JSDOM("<!doctype html><html><body></body></html>"); | ||
const { window } = jsdom; | ||
|
||
function copyProps(src, target) { | ||
const props = Object.getOwnPropertyNames(src) | ||
.filter(prop => typeof target[prop] === "undefined") | ||
.reduce( | ||
(result, prop) => ({ | ||
...result, | ||
[prop]: Object.getOwnPropertyDescriptor(src, prop) | ||
}), | ||
{} | ||
); | ||
Object.defineProperties(target, props); | ||
} | ||
|
||
global.window = window; | ||
global.document = window.document; | ||
global.navigator = { | ||
userAgent: "node.js" | ||
}; | ||
copyProps(window, global); | ||
require('jsdom-global')(); | ||
|
||
configure({ adapter: new Adapter() }); |
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
2 changes: 1 addition & 1 deletion
2
src/demos/testing-a-geospatial-app/4-testing-actions/src/test/index.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,3 +1,3 @@ | ||
import "./actions"; | ||
import "./components"; | ||
import "./smoke-screens"; | ||
import "./smoke-tests"; |
28 changes: 3 additions & 25 deletions
28
src/demos/testing-a-geospatial-app/4-testing-actions/src/test/setup-browser-env.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,31 +1,9 @@ | ||
/* setup.js */ | ||
import 'babel-polyfill'; | ||
const { JSDOM } = require("jsdom"); | ||
import "babel-polyfill"; | ||
import JSDOM from "jsdom"; | ||
const Adapter = require("enzyme-adapter-react-15"); | ||
const { configure } = require("enzyme"); | ||
|
||
const jsdom = new JSDOM("<!doctype html><html><body></body></html>"); | ||
const { window } = jsdom; | ||
|
||
function copyProps(src, target) { | ||
const props = Object.getOwnPropertyNames(src) | ||
.filter(prop => typeof target[prop] === "undefined") | ||
.reduce( | ||
(result, prop) => ({ | ||
...result, | ||
[prop]: Object.getOwnPropertyDescriptor(src, prop) | ||
}), | ||
{} | ||
); | ||
Object.defineProperties(target, props); | ||
} | ||
|
||
global.window = window; | ||
global.document = window.document; | ||
global.navigator = { | ||
userAgent: "node.js" | ||
}; | ||
copyProps(window, global); | ||
require("jsdom-global")(); | ||
|
||
configure({ adapter: new Adapter() }); | ||
|
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
Oops, something went wrong.