Skip to content

Latest commit

 

History

History
109 lines (107 loc) · 1.92 KB

catalog.md

File metadata and controls

109 lines (107 loc) · 1.92 KB
Array literal

Prefix: a

@[<#objects, ...#>]
Block self

Prefix: bself

__block __typeof__(self) blockSelf = self;
Dictionary literal

Prefix: d

@{<#key#>: <#object, ...#>}
Kiwi Should Eventually be No

Prefix: ssbn

[[expectFutureValue(theValue(<#something#>)) shouldEventually] beNo];
Kiwi Should Eventually be Yes

Prefix: ssby

[[expectFutureValue(theValue(<#something#>)) shouldEventually] beYes];
Kiwi Should be No

Prefix: sbn

[[theValue(<#something#>) should] beNo];
Kiwi Should be Yes

Prefix: sby

[[theValue(<#something#>) should] beYes];
Kiwi async test

Prefix: async

        __block BOOL done = NO;

        <#your async code here#>

        [[expectFutureValue(theValue(done)) shouldEventually] beYes];
        <#your expectaction here#>
Kiwi before each

Prefix: bef

beforeEach(^{
    <##>
});
<##>
Kiwi context

Prefix: con

context(@"<#something#>", ^{
    <##>
});
Kiwi describe

Prefix: des

describe(@"<#something#>", ^{
    <##>
});
Kiwi it

Prefix: it

it(@"<#something#>", ^{
    <##>
});
Kiwi should equal

Prefix: seq

[[<#something#> should] equal:<#something#>];
Kiwi should eventually equal

Prefix: sseq

[[expectFutureValue(<#futureValue#>) shouldEventually] equal:<#(id)#>];
Kiwi stub and return

Prefix: snr

[<#something#> stub:@selector(<#selector#>) andReturn:<#something#>];
Kiwi stub and return with arguments

Prefix: snra

[<#something#> stub:@selector(<#selector#>) andReturn:<#something#> withArguments:<#args#>,nil];
Kiwi theValue

Prefix: tv

theValue(<#expr#>)
Objc String Literal

Prefix: s

@"<#something#>"
Weak self

Prefix: wself

__weak __typeof__(self) weakSelf = self;