Skip to content

Commit

Permalink
Update @railsmob/events, fix tests. Bump to 0.31.10
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanzotov committed Feb 12, 2020
1 parent 05d3060 commit 0f28a1d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions __tests__/unit/Modal/Wrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe('Modal.Wrap', () => {
expect(baseElement).toMatchSnapshot();
});

it('should remove all listeners from scene active on unmount', () => {
it('should remove listener from scene active on unmount', () => {
const navigator = new Modal.Navigator('navigator');
const scene = new Modal.Scene('scene');
navigator.addScenes(scene);
Expand All @@ -54,10 +54,10 @@ describe('Modal.Wrap', () => {
);

scene.active.value = {
removeAllListeners: jest.fn(),
removeListener: jest.fn(),
};
unmount();
expect(scene.active.value.removeAllListeners).toBeCalled();
expect(scene.active.value.removeListener).toBeCalled();
});

describe('loading prop', () => {
Expand Down
10 changes: 3 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@navigationjs/react-native",
"version": "0.31.9",
"version": "0.31.10",
"description": "Simple and well-tested React Native navigation",
"main": "index.js",
"author": "Ivan Zotov <[email protected]> (http://ivanzotov.com/)",
Expand Down Expand Up @@ -39,14 +39,10 @@
},
"jest": {
"preset": "@testing-library/react-native",
"testEnvironment": "node",
"reporters": [
"default",
"../reporter.js"
]
"testEnvironment": "node"
},
"dependencies": {
"@navigationjs/core": "0.7.0",
"@railsmob/events": "0.1.11"
"@railsmob/events": "0.2.0"
}
}
4 changes: 4 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,10 @@
version "0.1.11"
resolved "https://registry.yarnpkg.com/@railsmob/events/-/events-0.1.11.tgz#1bbcc54b6bc70a41f07605b0fb50da5b8ed04dca"

"@railsmob/[email protected]":
version "0.2.0"
resolved "https://registry.yarnpkg.com/@railsmob/events/-/events-0.2.0.tgz#2a13c035db07e9a098774b43348f3b5f48038cb9"

"@react-native-community/cli-platform-android@^3.0.0-alpha.1", "@react-native-community/cli-platform-android@^3.0.0-alpha.7":
version "3.0.0-alpha.7"
resolved "https://registry.yarnpkg.com/@react-native-community/cli-platform-android/-/cli-platform-android-3.0.0-alpha.7.tgz#03c3671ab72b62a8742aa71b66cb8d594171891f"
Expand Down

0 comments on commit 0f28a1d

Please sign in to comment.