Skip to content

Commit

Permalink
Fixed build
Browse files Browse the repository at this point in the history
  • Loading branch information
gosha212 committed Jan 21, 2024
1 parent 8dfbdf8 commit 1f3e32c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 17 deletions.
2 changes: 1 addition & 1 deletion detox/test/e2e/33.attributes.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const { device, element, by } = require('detox');
const expect = require('expect').default;
const { custom } = require('./utils/custom-it');
const custom = require('./utils/custom-it');

describe('Attributes', () => {
/** @type {Detox.IndexableNativeElement} */
Expand Down
2 changes: 1 addition & 1 deletion detox/test/e2e/utils/custom-it.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const _it = {
};

const _describe = {
describeFromRNVersion: (version) => describeFromRNVersion(version),
skipFromRNVersion: (version) => describeFromRNVersion(version),
}

function runOrExpectFailByPredicates(spec, specFn, ...predicateFuncs) {
Expand Down
8 changes: 1 addition & 7 deletions detox/test/src/Screens/ActionsScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,7 @@ import {
} from 'react-native';
import TextInput from '../Views/TextInput';
import Slider from '@react-native-community/slider';

let LegacySlider;
try {
LegacySlider = require('react-native').Slider;
} catch (e) {
LegacySlider = undefined;
}
const LegacySlider = require('react-native').Slider;

const DoubleTapsText = requireNativeComponent('DetoxDoubleTapsTextView');
const SluggishTapsText = requireNativeComponent('DetoxSluggishTapsTextView');
Expand Down
9 changes: 1 addition & 8 deletions detox/test/src/Screens/AttributesScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,7 @@ import {
import CheckBox from '@react-native-community/checkbox';
import Slider from '@react-native-community/slider';
import {default as DatePicker} from '@react-native-community/datetimepicker';


let LegacySlider;
try {
LegacySlider = require('react-native').Slider;
} catch (e) {
LegacySlider = undefined;
}
const LegacySlider = require('react-native').Slider;

export default class AttributesScreen extends Component {
constructor(props) {
Expand Down

0 comments on commit 1f3e32c

Please sign in to comment.