[tests] misc cleanup
This commit is contained in:
parent
a9bb8a2bd8
commit
f290d2eb02
|
@ -16,7 +16,6 @@ class Root extends Component {
|
||||||
message: '',
|
message: '',
|
||||||
};
|
};
|
||||||
|
|
||||||
bridge.setBridgeProperty('root', this);
|
|
||||||
bridge.setBridgeProperty('module', firebase);
|
bridge.setBridgeProperty('module', firebase);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
const should = require('should');
|
const should = require('should');
|
||||||
|
|
||||||
describe('bridge', () => {
|
describe('bridge', () => {
|
||||||
beforeEach(async function beforeEach() {
|
// beforeEach(async function beforeEach() {
|
||||||
// await device.reloadReactNative();
|
// await device.reloadReactNative();
|
||||||
bridge.root.setState({ message: this.currentTest.title });
|
// bridge.root.setState({ message: this.currentTest.title });
|
||||||
});
|
// });
|
||||||
|
|
||||||
it('should provide -> global.bridge', async () => {
|
it('should provide -> global.bridge', async () => {
|
||||||
should(bridge).not.be.undefined();
|
should(bridge).not.be.undefined();
|
||||||
|
@ -37,7 +37,7 @@ describe('bridge', () => {
|
||||||
|
|
||||||
// the apps root component
|
// the apps root component
|
||||||
// allows you to read and set state if required
|
// allows you to read and set state if required
|
||||||
it('should provide -> bridge.root', async () => {
|
xit('should provide -> bridge.root', async () => {
|
||||||
should(bridge.root).not.be.undefined();
|
should(bridge.root).not.be.undefined();
|
||||||
should(bridge.root.setState).be.a.Function();
|
should(bridge.root.setState).be.a.Function();
|
||||||
should(bridge.root.state).be.a.Object();
|
should(bridge.root.state).be.a.Object();
|
||||||
|
|
Loading…
Reference in New Issue