Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 3142aa9

Browse files
authored
Merge pull request #4 from react-native-windows/spell
rename Enviroment to Environment
2 parents 2e02ea8 + 332b16c commit 3142aa9

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

TestEnviroment.ts renamed to TestEnvironment.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { driver, windowsAppDriverCapabilities } from 'selenium-appium'
22

33
const appId = 'Microsoft.WindowsCalculator_8wekyb3d8bbwe!App'
44

5-
class TestEnviroment {
5+
class TestEnvironment {
66
setup() {
77
jest.setTimeout(60000);
88
const capabilities = windowsAppDriverCapabilities(appId);
@@ -14,4 +14,4 @@ class TestEnviroment {
1414
}
1515
}
1616

17-
export default new TestEnviroment();
17+
export default new TestEnvironment();

__tests__/calculator.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { By2 } from 'selenium-appium'
2-
import TestEnviroment from '../TestEnviroment'
2+
import TestEnvironment from '../TestEnvironment'
33

44
const oneButton = By2.nativeName('One');
55
const plusButton = By2.nativeName('Plus');
@@ -8,11 +8,11 @@ const equalButton = By2.nativeName('Equals');
88
const calculatorResult = By2.nativeAccessibilityId('CalculatorResults');
99

1010
beforeAll(() => {
11-
return TestEnviroment.setup();;
11+
return TestEnvironment.setup();;
1212
})
1313

1414
afterAll(() => {
15-
return TestEnviroment.teardown();
15+
return TestEnvironment.teardown();
1616
})
1717

1818
describe('Calculator Test', () => {

__tests__/calculatorWithPageObject.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import TestEnviroment from "../TestEnviroment";
1+
import TestEnvironment from "../TestEnvironment";
22
import CalculatorPage from '../Pages/CalculatorPage'
33

44
beforeAll(() => {
5-
return TestEnviroment.setup();;
5+
return TestEnvironment.setup();;
66
})
77

88
afterAll(() => {
9-
return TestEnviroment.teardown();
9+
return TestEnvironment.teardown();
1010
})
1111

1212
describe('Use PageObject', () => {

0 commit comments

Comments
 (0)