react-native-navigation的迁移库

RNNTransitionStateHolderTest.m 971B

123456789101112131415161718192021222324252627
  1. #import <XCTest/XCTest.h>
  2. #import "RNNTransitionStateHolder.h"
  3. @interface RNNTransitionStateHolderTest : XCTestCase
  4. @end
  5. @implementation RNNTransitionStateHolderTest
  6. - (void)testDefaultObjectProperties {
  7. RNNTransitionStateHolder* defaultTransitionObject = [[RNNTransitionStateHolder alloc] initWithTransition:@{@"fromId": @"hello"}];
  8. XCTAssertEqual(defaultTransitionObject.springDamping, 0.85);
  9. XCTAssertEqual(defaultTransitionObject.springVelocity, 0.8);
  10. XCTAssertEqual(defaultTransitionObject.startDelay, 0);
  11. XCTAssertEqual(defaultTransitionObject.startAlpha, 1);
  12. XCTAssertEqual(defaultTransitionObject.endAlpha, 1);
  13. XCTAssertEqual(defaultTransitionObject.startX, 0);
  14. XCTAssertEqual(defaultTransitionObject.startY, 0);
  15. XCTAssertEqual(defaultTransitionObject.endX, 0);
  16. XCTAssertEqual(defaultTransitionObject.endY, 0);
  17. XCTAssertEqual(defaultTransitionObject.duration, 1);
  18. XCTAssertEqual(defaultTransitionObject.interactivePop, false);
  19. }
  20. @end