Fix some eslint errors

This commit is contained in:
Scott Kyle 2016-04-19 01:38:46 -07:00
parent 8ff23b5411
commit a05f7e2261
3 changed files with 22 additions and 6 deletions

View File

@ -31,7 +31,7 @@ if (typeof Realm != 'undefined') {
// eslint-disable-next-line
} else if (typeof process == 'object' && ('' + process) == '[object process]') {
// Prevent React Native packager from seeing this module.
const bindings = 'bindings';
var bindings = 'bindings';
realmConstructor = require(bindings)('realm').Realm;
} else {
throw new Error('Missing Realm constructor - please ensure RealmReact framework is included!');

View File

@ -1,3 +1,24 @@
////////////////////////////////////////////////////////////////////////////
//
// Copyright 2016 Realm Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
////////////////////////////////////////////////////////////////////////////
/* eslint-env es6, node */
/* eslint-disable no-console */
'use strict';
const mockery = require('mockery');
@ -7,8 +28,6 @@ function runTests() {
const testNames = RealmTests.getTestNames();
for (let suiteName in testNames) {
let testSuite = RealmTests[suiteName];
console.log('Starting ' + suiteName);
for (let testName of testNames[suiteName]) {

View File

@ -19,7 +19,6 @@
'use strict';
const React = require('react-native');
const Realm = require('realm');
const RealmTests = require('realm-tests');
RealmTests.registerTests({
@ -56,8 +55,6 @@ function runTests() {
let testNames = RealmTests.getTestNames();
for (let suiteName in testNames) {
let testSuite = RealmTests[suiteName];
console.log('Starting ' + suiteName);
for (let testName of testNames[suiteName]) {