From b3a0627a517506384d1b4580a3b942d35153d506 Mon Sep 17 00:00:00 2001 From: Scott Kyle Date: Wed, 9 Dec 2015 15:49:43 -0800 Subject: [PATCH] Rename JS test files to be consistent --- RealmJS.xcodeproj/project.pbxproj | 2 +- tests/lib/index.js | 10 +++++----- tests/lib/{ArrayTests.js => list-tests.js} | 0 tests/lib/{ObjectTests.js => object-tests.js} | 0 tests/lib/{QueryTests.js => query-tests.js} | 2 +- tests/lib/{RealmTests.js => realm-tests.js} | 0 tests/lib/{ResultsTests.js => results-tests.js} | 0 .../ios/ReactTests.xcodeproj/project.pbxproj | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) rename tests/lib/{ArrayTests.js => list-tests.js} (100%) rename tests/lib/{ObjectTests.js => object-tests.js} (100%) rename tests/lib/{QueryTests.js => query-tests.js} (99%) rename tests/lib/{RealmTests.js => realm-tests.js} (100%) rename tests/lib/{ResultsTests.js => results-tests.js} (100%) diff --git a/RealmJS.xcodeproj/project.pbxproj b/RealmJS.xcodeproj/project.pbxproj index 5fcf0285..f7831bd9 100644 --- a/RealmJS.xcodeproj/project.pbxproj +++ b/RealmJS.xcodeproj/project.pbxproj @@ -747,7 +747,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "cp src/object-store/parser/queryTests.json \"$TARGET_BUILD_DIR/$CONTENTS_FOLDER_PATH/lib/\""; + shellScript = "cp src/object-store/parser/queryTests.json \"$TARGET_BUILD_DIR/$CONTENTS_FOLDER_PATH/lib/query-tests.json\""; }; F63FF2C51C12462600B3B8E0 /* Download Core */ = { isa = PBXShellScriptBuildPhase; diff --git a/tests/lib/index.js b/tests/lib/index.js index 4f621f52..0518ca14 100644 --- a/tests/lib/index.js +++ b/tests/lib/index.js @@ -4,11 +4,11 @@ 'use strict'; -exports.ArrayTests = require('./ArrayTests'); -exports.ObjectTests = require('./ObjectTests'); -exports.RealmTests = require('./RealmTests'); -exports.ResultsTests = require('./ResultsTests'); -exports.QueryTests = require('./QueryTests'); +exports.ListTests = require('./list-tests'); +exports.ObjectTests = require('./object-tests'); +exports.RealmTests = require('./realm-tests'); +exports.ResultsTests = require('./results-tests'); +exports.QueryTests = require('./query-tests'); var SPECIAL_METHODS = { beforeEach: true, diff --git a/tests/lib/ArrayTests.js b/tests/lib/list-tests.js similarity index 100% rename from tests/lib/ArrayTests.js rename to tests/lib/list-tests.js diff --git a/tests/lib/ObjectTests.js b/tests/lib/object-tests.js similarity index 100% rename from tests/lib/ObjectTests.js rename to tests/lib/object-tests.js diff --git a/tests/lib/QueryTests.js b/tests/lib/query-tests.js similarity index 99% rename from tests/lib/QueryTests.js rename to tests/lib/query-tests.js index 137cf9a4..9c79163e 100644 --- a/tests/lib/QueryTests.js +++ b/tests/lib/query-tests.js @@ -9,7 +9,7 @@ var Realm = require('realm'); var BaseTest = require('./base-test'); var TestCase = require('./asserts'); var schemas = require('./schemas'); -var testCases = require('./queryTests.json'); +var testCases = require('./query-tests.json'); var typeConverters = {}; diff --git a/tests/lib/RealmTests.js b/tests/lib/realm-tests.js similarity index 100% rename from tests/lib/RealmTests.js rename to tests/lib/realm-tests.js diff --git a/tests/lib/ResultsTests.js b/tests/lib/results-tests.js similarity index 100% rename from tests/lib/ResultsTests.js rename to tests/lib/results-tests.js diff --git a/tests/react-test-app/ios/ReactTests.xcodeproj/project.pbxproj b/tests/react-test-app/ios/ReactTests.xcodeproj/project.pbxproj index c5bb55ec..7ba00bcf 100644 --- a/tests/react-test-app/ios/ReactTests.xcodeproj/project.pbxproj +++ b/tests/react-test-app/ios/ReactTests.xcodeproj/project.pbxproj @@ -617,7 +617,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "[ -s \"${HOME}/.nvm/nvm.sh\" ] && . \"${HOME}/.nvm/nvm.sh\" \nrm -rf ../node_modules/realm ../node_modules/realm-tests\nnpm install realm realm-tests\ncp ../../../src/object-store/parser/queryTests.json ../node_modules/realm-tests\n"; + shellScript = "[ -s \"${HOME}/.nvm/nvm.sh\" ] && . \"${HOME}/.nvm/nvm.sh\" \nrm -rf ../node_modules/realm ../node_modules/realm-tests\nnpm install realm realm-tests\ncp ../../../src/object-store/parser/queryTests.json ../node_modules/realm-tests/query-tests.json\n"; }; /* End PBXShellScriptBuildPhase section */