mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-12 07:14:23 +00:00
675e26e200
In the case of test failures, a TestFailureError object is thrown, which removes the last two stack frames so the true source of the failure is revealed to the native code. Clicking on a failure in the Xcode sidebar will take you to exactly where it occurred now. Fixes #28
32 lines
1013 B
Objective-C
32 lines
1013 B
Objective-C
////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Copyright 2015 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.
|
|
//
|
|
////////////////////////////////////////////////////////////////////////////
|
|
|
|
#import <XCTest/XCTest.h>
|
|
#import <RealmJS/RealmJS.h>
|
|
|
|
extern NSString *RealmPathForFile(NSString *fileName);
|
|
extern NSString *TestRealmPath();
|
|
|
|
@interface RealmJSTests : XCTestCase
|
|
|
|
+ (NSString *)jsSuiteName;
|
|
|
|
@property (nonatomic, readonly) JSContext *context;
|
|
|
|
@end
|