Files
create-react-app/packages/confusing-browser-globals/test.js
Siddharth Doshi c36d1a00a1 Add restricted globals package (#2286)
* 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
2018-01-15 00:08:14 -05:00

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');
});