Skip to content

Commit

Permalink
update testDisplayLayoutConstraintKey case
Browse files Browse the repository at this point in the history
  • Loading branch information
cntrump committed May 31, 2021
1 parent 9125cbf commit 25fdb85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tests/Specs/NSLayoutConstraint+MASDebugAdditionsSpec.m
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ - (void)testDisplayLayoutConstraintKey {
MASLayoutConstraint *layoutConstraint = [MASLayoutConstraint constraintWithItem:newView1 attribute:NSLayoutAttributeBaseline relatedBy:NSLayoutRelationEqual toItem:newView2 attribute:NSLayoutAttributeTop multiplier:2 constant:300];
layoutConstraint.mas_key = @"helloConstraint";

NSString *description = [NSString stringWithFormat:@"<MASLayoutConstraint:helloConstraint %@:newView1.baseline == %@:newView2.top * 2 + 300>", MAS_VIEW.class, MAS_VIEW.class];
NSString *description = [NSString stringWithFormat:@"<MASLayoutConstraint:helloConstraint %@:newView1.lastBaseline == %@:newView2.top * 2 + 300>", MAS_VIEW.class, MAS_VIEW.class];
expect([layoutConstraint description]).to.equal(description);
}

Expand All @@ -57,4 +57,4 @@ - (void)testDisplayConstraintKey {
expect([superview.constraints[0] description]).to.equal(description);
}

SpecEnd
SpecEnd

0 comments on commit 25fdb85

Please sign in to comment.