mirror of
https://github.com/status-im/realm-js.git
synced 2025-02-05 03:03:50 +00:00
Importing realm-tests module one level up
This commit is contained in:
parent
d62da34ef0
commit
ab4d9c9aac
@ -10,7 +10,7 @@
|
|||||||
"react-native": "0.40.0",
|
"react-native": "0.40.0",
|
||||||
"react-native-fs": "^1.1.0",
|
"react-native-fs": "^1.1.0",
|
||||||
"realm": "file:../..",
|
"realm": "file:../..",
|
||||||
"realm-tests": "file:../shared/js",
|
"realm-tests": "file:../shared",
|
||||||
"xmlbuilder": "^4.2.1"
|
"xmlbuilder": "^4.2.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
2
tests/react-test-app/tests/index.js
vendored
2
tests/react-test-app/tests/index.js
vendored
@ -19,7 +19,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
import { NativeAppEventEmitter, NativeModules } from 'react-native';
|
import { NativeAppEventEmitter, NativeModules } from 'react-native';
|
||||||
import * as RealmTests from 'realm-tests';
|
import * as RealmTests from 'realm-tests/js';
|
||||||
import ListViewTest from './listview-test';
|
import ListViewTest from './listview-test';
|
||||||
|
|
||||||
RealmTests.registerTests({
|
RealmTests.registerTests({
|
||||||
|
2
tests/react-test-app/tests/listview-test.js
vendored
2
tests/react-test-app/tests/listview-test.js
vendored
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
import Realm from 'realm';
|
import Realm from 'realm';
|
||||||
import { ListView } from 'realm/react-native';
|
import { ListView } from 'realm/react-native';
|
||||||
import { assertEqual, assertTrue } from 'realm-tests/asserts';
|
import { assertEqual, assertTrue } from 'realm-tests/js/asserts';
|
||||||
|
|
||||||
const OBJECT_SCHEMA = {
|
const OBJECT_SCHEMA = {
|
||||||
name: 'UniqueObject',
|
name: 'UniqueObject',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user