Skip to content

Commit 7707986

Browse files
committed
test -> it
1 parent 2578e67 commit 7707986

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

packages/sdk/cloudflare/__tests__/index.test.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@ describe('init', () => {
3737
});
3838

3939
describe('flags', () => {
40-
test('variation default', async () => {
40+
it('variation default', async () => {
4141
const value = await ldClient.variation(flagKey1, context, false);
4242
expect(value).toBeTruthy();
4343
});
4444

45-
test('variation default rollout', async () => {
45+
it('variation default rollout', async () => {
4646
const contextWithEmail = { ...context, email: '[email protected]' };
4747
const value = await ldClient.variation(flagKey2, contextWithEmail, false);
4848
const detail = await ldClient.variationDetail(flagKey2, contextWithEmail, false);
@@ -51,7 +51,7 @@ describe('init', () => {
5151
expect(value).toBeTruthy();
5252
});
5353

54-
test('rule match', async () => {
54+
it('rule match', async () => {
5555
const contextWithEmail = { ...context, email: '[email protected]' };
5656
const value = await ldClient.variation(flagKey1, contextWithEmail, false);
5757
const detail = await ldClient.variationDetail(flagKey1, contextWithEmail, false);
@@ -64,7 +64,7 @@ describe('init', () => {
6464
expect(value).toBeFalsy();
6565
});
6666

67-
test('fallthrough', async () => {
67+
it('fallthrough', async () => {
6868
const contextWithEmail = { ...context, email: '[email protected]' };
6969
const value = await ldClient.variation(flagKey1, contextWithEmail, false);
7070
const detail = await ldClient.variationDetail(flagKey1, contextWithEmail, false);
@@ -73,7 +73,7 @@ describe('init', () => {
7373
expect(value).toBeTruthy();
7474
});
7575

76-
test('allFlags fallthrough', async () => {
76+
it('allFlags fallthrough', async () => {
7777
const allFlags = await ldClient.allFlagsState(context);
7878

7979
expect(allFlags).toBeDefined();
@@ -92,7 +92,7 @@ describe('init', () => {
9292
});
9393

9494
describe('segments', () => {
95-
test('segment by country', async () => {
95+
it('segment by country', async () => {
9696
const contextWithCountry = { ...context, country: 'australia' };
9797
const value = await ldClient.variation(flagKey3, contextWithCountry, false);
9898
const detail = await ldClient.variationDetail(flagKey3, contextWithCountry, false);
@@ -108,7 +108,7 @@ describe('init', () => {
108108
});
109109

110110
describe('with caching', () => {
111-
test('will cache across multiple variation calls', async () => {
111+
it('will cache across multiple variation calls', async () => {
112112
const kv = (await mf.getKVNamespace(namespace)) as unknown as KVNamespace;
113113
await kv.put(rootEnvKey, JSON.stringify(allFlagsSegments));
114114
const ldClient = init(clientSideID, kv, { cache: { ttl: 60, checkInterval: 600 } });
@@ -122,7 +122,7 @@ describe('init', () => {
122122
expect(spy).toHaveBeenCalledTimes(1);
123123
});
124124

125-
test('will cache across multiple allFlags calls', async () => {
125+
it('will cache across multiple allFlags calls', async () => {
126126
const kv = (await mf.getKVNamespace(namespace)) as unknown as KVNamespace;
127127
await kv.put(rootEnvKey, JSON.stringify(allFlagsSegments));
128128
const ldClient = init(clientSideID, kv, { cache: { ttl: 60, checkInterval: 600 } });
@@ -136,7 +136,7 @@ describe('init', () => {
136136
expect(spy).toHaveBeenCalledTimes(1);
137137
});
138138

139-
test('will cache between allFlags and variation', async () => {
139+
it('will cache between allFlags and variation', async () => {
140140
const kv = (await mf.getKVNamespace(namespace)) as unknown as KVNamespace;
141141
await kv.put(rootEnvKey, JSON.stringify(allFlagsSegments));
142142
const ldClient = init(clientSideID, kv, { cache: { ttl: 60, checkInterval: 600 } });
@@ -150,7 +150,7 @@ describe('init', () => {
150150
expect(spy).toHaveBeenCalledTimes(1);
151151
});
152152

153-
test('will eventually expire', async () => {
153+
it('will eventually expire', async () => {
154154
jest.spyOn(Date, 'now').mockImplementation(() => 0);
155155

156156
const kv = (await mf.getKVNamespace(namespace)) as unknown as KVNamespace;

0 commit comments

Comments
 (0)