mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-03-30 17:04:14 +08:00
* Add restricted globals package * Use new package in eslint-config * Add eslint-restricted-globals dependency * Fixes * Update dependencies * Update test and README * Use jest * tweaks * Add lint/test to CI * Fix lint
21 lines
443 B
JavaScript
21 lines
443 B
JavaScript
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
|
|
/* eslint-env jest */
|
|
|
|
'use strict';
|
|
|
|
let globals = require('./index');
|
|
|
|
it('should return an Array of globals', () => {
|
|
expect(Array.isArray(globals)).toBe(true);
|
|
});
|
|
|
|
it('should contain "event" variable', () => {
|
|
expect(globals).toContain('event');
|
|
});
|