|
@@ -103,15 +103,15 @@ describe( 'Keyboard', () => {
|
|
|
} );
|
|
} );
|
|
|
|
|
|
|
|
describe( 'getEnvKeystrokeText', () => {
|
|
describe( 'getEnvKeystrokeText', () => {
|
|
|
- const initialEnvMac = env.mac;
|
|
|
|
|
|
|
+ const initialEnvMac = env.isMac;
|
|
|
|
|
|
|
|
afterEach( () => {
|
|
afterEach( () => {
|
|
|
- env.mac = initialEnvMac;
|
|
|
|
|
|
|
+ env.isMac = initialEnvMac;
|
|
|
} );
|
|
} );
|
|
|
|
|
|
|
|
describe( 'on Macintosh', () => {
|
|
describe( 'on Macintosh', () => {
|
|
|
beforeEach( () => {
|
|
beforeEach( () => {
|
|
|
- env.mac = true;
|
|
|
|
|
|
|
+ env.isMac = true;
|
|
|
} );
|
|
} );
|
|
|
|
|
|
|
|
it( 'replaces CTRL with ⌘', () => {
|
|
it( 'replaces CTRL with ⌘', () => {
|
|
@@ -147,7 +147,7 @@ describe( 'Keyboard', () => {
|
|
|
|
|
|
|
|
describe( 'on non–Macintosh', () => {
|
|
describe( 'on non–Macintosh', () => {
|
|
|
beforeEach( () => {
|
|
beforeEach( () => {
|
|
|
- env.mac = false;
|
|
|
|
|
|
|
+ env.isMac = false;
|
|
|
} );
|
|
} );
|
|
|
|
|
|
|
|
it( 'does not touch anything', () => {
|
|
it( 'does not touch anything', () => {
|