Home
last modified time | relevance | path

Searched refs:expect (Results 1 – 25 of 873) sorted by relevance

12345678910>>...35

/expo/packages/expo-router/src/__tests__/
H A Dmatchers.test.node.ts14 expect(stripGroupSegmentsFromPath('(foo)/(bar)')).toBe('');
20 expect(matchGroupName('[[...foobar]]')).toEqual(undefined);
21 expect(matchGroupName('[[foobar]]')).toEqual(undefined);
22 expect(matchGroupName('[...foobar]')).toEqual(undefined);
23 expect(matchGroupName('[foobar]')).toEqual(undefined);
24 expect(matchGroupName('(foobar)')).toEqual('foobar');
25 expect(matchGroupName('(foo,bar)')).toEqual('foo,bar');
26 expect(matchGroupName('((foobar))')).toEqual('(foobar)');
28 expect(matchGroupName('foobar')).toEqual(undefined);
46 expect(matchDynamicName('[foobar]')).toEqual('foobar');
[all …]
/expo/ios/versioned-react-native/ABI48_0_0/ReactNative/scripts/__tests__/
H A Dversion-utils-test.js93 expect(major).toBe('0');
94 expect(minor).toBe('66');
95 expect(patch).toBe('0');
105 expect(major).toBe('0');
107 expect(patch).toBe('0');
126 expect(major).toBe('0');
128 expect(patch).toBe('0');
138 expect(major).toBe('0');
140 expect(patch).toBe('0');
159 expect(major).toBe('0');
[all …]
/expo/packages/expo-modules-core/ios/Tests/
H A DDynamicTypeSpec.swift43 expect(~Bool.self ~> Bool.self) == true in spec()
47 expect(~Double.self !~> Bool.self) == true in spec()
48 expect(~Bool.self !~> Double.self) == true in spec()
54 expect(~Int.self == ~Int.self) == true in spec()
56 expect(~Bool.self == ~Bool.self) == true in spec()
60 expect(~Int.self != ~String.self) == true in spec()
86 expect(result as? [Double]) == [value] in spec()
150 expect(~URL.self ~> URL.self) == true in spec()
161 expect(~URL.self == ~URL.self) == true in spec()
250 expect(Optional.isNil(result)) == true in spec()
[all …]
H A DJavaScriptRuntimeSpec.swift10 expect(runtime.global) !== nil in spec()
24 expect(null.isNull()) == true in spec()
25 expect(null.kind) == .null in spec()
26 expect(null.getRaw()).to(beNil()) in spec()
34 expect(boolTrue.kind) == .bool in spec()
35 expect(boolFalse.kind) == .bool in spec()
43 expect(number.kind) == .number in spec()
51 expect(string.kind) == .string in spec()
58 expect(array.kind) == .object in spec()
67 expect(dict1.kind) == .object in spec()
[all …]
/expo/ios/versioned/sdk49/ExpoModulesCore/ios/Tests/
H A DDynamicTypeSpec.swift43 expect(~Bool.self ~> Bool.self) == true in spec()
47 expect(~Double.self !~> Bool.self) == true in spec()
48 expect(~Bool.self !~> Double.self) == true in spec()
54 expect(~Int.self == ~Int.self) == true in spec()
56 expect(~Bool.self == ~Bool.self) == true in spec()
60 expect(~Int.self != ~String.self) == true in spec()
86 expect(result as? [Double]) == [value] in spec()
150 expect(~URL.self ~> URL.self) == true in spec()
161 expect(~URL.self == ~URL.self) == true in spec()
250 expect(Optional.isNil(result)) == true in spec()
[all …]
H A DJavaScriptRuntimeSpec.swift10 expect(runtime.global) !== nil in spec()
24 expect(null.isNull()) == true in spec()
25 expect(null.kind) == .null in spec()
26 expect(null.getRaw()).to(beNil()) in spec()
34 expect(boolTrue.kind) == .bool in spec()
35 expect(boolFalse.kind) == .bool in spec()
43 expect(number.kind) == .number in spec()
51 expect(string.kind) == .string in spec()
58 expect(array.kind) == .object in spec()
67 expect(dict1.kind) == .object in spec()
[all …]
/expo/packages/@expo/cli/src/start/platforms/__tests__/
H A DPlatformManager-test.ts103 expect(Log.warn).toHaveBeenCalledTimes(0);
104 expect(Log.error).toHaveBeenCalledTimes(0);
133 expect(Log.warn).toHaveBeenCalledTimes(0);
134 expect(Log.error).toHaveBeenCalledTimes(0);
164 expect(Log.warn).toHaveBeenCalledTimes(1);
165 expect(Log.warn).toHaveBeenNthCalledWith(1, expect.stringMatching(/iPhone 13/gm));
166 expect(Log.error).toHaveBeenCalledTimes(0);
192 expect(Log.warn).toHaveBeenCalledTimes(1);
193 expect(Log.warn).toHaveBeenNthCalledWith(1, expect.stringMatching(/ios.bundleIdentifier/gm));
216 expect(Log.warn).toHaveBeenCalledTimes(0);
[all …]
/expo/ios/versioned-react-native/ABI47_0_0/ReactNative/scripts/__tests__/
H A Dversion-utils-test.js64 expect(major).toBe('0');
65 expect(minor).toBe('66');
66 expect(patch).toBe('0');
74 expect(major).toBe('0');
76 expect(patch).toBe('0');
83 expect(major).toBe('0');
85 expect(patch).toBe('0');
92 expect(major).toBe('0');
94 expect(patch).toBe('1');
102 expect(major).toBe('0');
[all …]
/expo/packages/create-expo/e2e/__tests__/
H A Dindex-test.ts25 expect(results.status).toBe(0);
53 expect.assertions(1);
96 expect(results.status).toBe(0);
113 expect(results.status).toBe(0);
134 expect(results.stdout).toMatch(/pnpm install/);
155 expect(results.stdout).toMatch(/bun install/);
176 expect(results.stdout).toMatch(/npm install/);
219 expect(results.status).toBe(0);
251 expect.assertions(2);
297 expect(results.stdout).toMatch(/npm install/);
[all …]
/expo/packages/expo-manifests/ios/Tests/
H A DLegacyManifestSpec.swift27 expect(manifest.bundleKey()).to(beNil()) in spec()
39 expect(manifest.revisionId()).to(beNil()) in spec()
40 expect(manifest.slug()).to(beNil()) in spec()
41 expect(manifest.appKey()).to(beNil()) in spec()
42 expect(manifest.name()).to(beNil()) in spec()
43 expect(manifest.version()).to(beNil()) in spec()
46 expect(manifest.iosConfig()).to(beNil()) in spec()
47 expect(manifest.hostUri()).to(beNil()) in spec()
50 expect(manifest.developer()).to(beNil()) in spec()
63 expect(manifest.supportsRTL()) == false in spec()
[all …]
H A DBareManifestSpec.swift29 expect(manifest.metadata()).to(beNil()) in spec()
39 expect(manifest.revisionId()).to(beNil()) in spec()
40 expect(manifest.slug()).to(beNil()) in spec()
41 expect(manifest.appKey()).to(beNil()) in spec()
42 expect(manifest.name()).to(beNil()) in spec()
43 expect(manifest.version()).to(beNil()) in spec()
46 expect(manifest.iosConfig()).to(beNil()) in spec()
47 expect(manifest.hostUri()).to(beNil()) in spec()
50 expect(manifest.developer()).to(beNil()) in spec()
63 expect(manifest.supportsRTL()) == false in spec()
[all …]
H A DNewManifestSpec.swift25 expect(manifest.runtimeVersion()) == "1" in spec()
26 expect(NSDictionary(dictionary: [ in spec()
30 expect(manifest.assets()).to(beNil()) in spec()
35 expect(manifest.slug()).to(beNil()) in spec()
36 expect(manifest.appKey()).to(beNil()) in spec()
37 expect(manifest.name()).to(beNil()) in spec()
38 expect(manifest.version()).to(beNil()) in spec()
41 expect(manifest.iosConfig()).to(beNil()) in spec()
42 expect(manifest.hostUri()).to(beNil()) in spec()
58 expect(manifest.supportsRTL()) == false in spec()
[all …]
/expo/packages/@expo/config-plugins/src/ios/__tests__/
H A DMaps-test.ts16 expect(
50 expect(results.didMerge).toBe(true);
52 expect(results.didClear).toBe(false);
56 expect(modded.didMerge).toBe(false);
57 expect(modded.didClear).toBe(false);
62 expect(modded2.didMerge).toBe(false);
64 expect(modded2.didClear).toBe(true);
75 expect(results.didMerge).toBe(true);
81 expect(modded.didMerge).toBe(false);
82 expect(modded.didClear).toBe(false);
[all …]
/expo/apps/test-suite/tests/
H A DDevice.js18 t.expect(uptime).toBeDefined();
38 t.expect(brand).toBeDefined();
42 t.expect(modelName).toBeDefined();
44 t.expect(osName).toBeDefined();
48 t.expect(isDevice).toBeDefined();
69 t.expect(designName).toBeNull();
70 t.expect(productName).toBeNull();
93 t.expect(error).toBeDefined();
105 t.expect(error).toBeDefined();
139 t.expect(brand).toBeDefined();
[all …]
/expo/packages/expo-dev-launcher/bundle/functions/__tests__/
H A DgetDevSessionsAsync.test.ts12 expect(fetch).not.toHaveBeenCalled();
16 expect(fetch).toHaveBeenCalledWith(
18 expect.any(Object)
25 expect(fetch).not.toHaveBeenCalled();
29 expect(fetch).toHaveBeenCalledWith(
31 expect.any(Object)
36 expect.any(Object)
47 expect(fetch).toHaveBeenCalledWith(
49 expect.any(Object)
54 expect.any(Object)
[all …]
H A DgetInitialData.test.ts40 expect(getBuildInfoAsync).not.toHaveBeenCalled();
42 expect(restoreUserAsync).not.toHaveBeenCalled();
44 expect(getCrashReport).not.toHaveBeenCalled();
53 expect(getDevSessionsAsync).toHaveBeenCalled();
54 expect(getBuildInfoAsync).toHaveBeenCalled();
56 expect(restoreUserAsync).toHaveBeenCalled();
57 expect(getCrashReport).toHaveBeenCalled();
67 expect(getCrashReport).not.toHaveBeenCalled();
75 expect(getBuildInfoAsync).toHaveBeenCalled();
77 expect(restoreUserAsync).toHaveBeenCalled();
[all …]
/expo/packages/@expo/package-manager/src/node/__tests__/
H A DYarnPackageManager-test.ts30 expect.anything(),
31 expect.anything(),
43 expect.anything(),
44 expect.anything(),
65 expect.anything(),
66 expect.anything(),
76 expect.anything(),
77 expect.anything(),
208 expect(pending).toHaveProperty('child', expect.any(Promise));
251 expect(pending).toHaveProperty('child', expect.any(Promise));
[all …]
H A DNpmPackageManager-test.ts30 expect.anything(),
31 expect.anything(),
43 expect.anything(),
44 expect.anything(),
65 expect.anything(),
66 expect.anything(),
76 expect.anything(),
77 expect.anything(),
122 expect(spawnAsync).toBeCalledWith('npm', ['--version'], expect.anything());
212 expect(pending).toHaveProperty('child', expect.any(Promise));
[all …]
H A DPnpmPackageManager-test.ts44 expect.anything(),
45 expect.anything(),
57 expect.anything(),
58 expect.anything(),
79 expect.anything(),
80 expect.anything(),
90 expect.anything(),
91 expect.anything(),
128 expect(spawnAsync).toBeCalledWith('pnpm', ['--version'], expect.anything());
330 expect.anything()
[all …]
H A DBunPackageManager-test.ts30 expect.anything(),
31 expect.anything(),
43 expect.anything(),
44 expect.anything(),
65 expect.anything(),
66 expect.anything(),
76 expect.anything(),
77 expect.anything(),
114 expect(spawnAsync).toBeCalledWith('bun', ['--version'], expect.anything());
277 expect.anything()
[all …]
/expo/docs/components/plugins/
H A DAPISection.test.tsx16 expect(container).toMatchSnapshot();
33 expect(screen.queryByText('Components'));
43 expect(container).toMatchSnapshot();
59 expect(screen.queryByText('Components'));
60 expect(screen.queryByText('Hooks'));
70 expect(container).toMatchSnapshot();
82 expect(screen.queryByText('Methods'));
83 expect(screen.queryByText('Enums'));
85 expect(screen.queryByText('Types'));
94 expect(container).toMatchSnapshot();
[all …]
/expo/packages/expo-updates/ios/Tests/
H A DUpdatesConfigSpec.swift18 expect(config.isEnabled) == true in spec()
20 expect(config.scopeKey) == "blah" in spec()
23 expect(config.releaseChannel) == "test" in spec()
24 expect(config.launchWaitMs) == 2 in spec()
28 expect(config.sdkVersion) == "10.0.0" in spec()
30 expect(config.hasEmbeddedUpdate) == true in spec()
47 expect(config.isEnabled) == false in spec()
49 expect(config.scopeKey) == "overridden" in spec()
52 expect(config.releaseChannel) == "test" in spec()
53 expect(config.launchWaitMs) == 2 in spec()
[all …]
H A DUpdatesStateMachineSpec.swift26 expect(machine.state) == .idle in spec()
34 expect(machine.state) == .checking in spec()
40 expect(machine.state) == .idle in spec()
56 expect(machine.state) == .checking in spec()
59 expect(machine.state) == .idle in spec()
77 expect(machine.state) == .idle in spec()
92 expect(machine.state) == .checking in spec()
95 expect(machine.state) == .idle in spec()
109 expect(machine.state) == .checking in spec()
119 expect(machine.state) == .checking in spec()
[all …]
/expo/packages/@expo/cli/src/utils/__tests__/
H A DvalidateApplicationId-test.ts29 expect(validateBundleId('bacon')).toBe(true);
31 expect(validateBundleId('.')).toBe(true);
33 expect(validateBundleId('_')).toBe(false);
34 expect(validateBundleId(',')).toBe(false);
58 expect(validatePackage('.')).toBe(false);
60 expect(validatePackage('_')).toBe(false);
61 expect(validatePackage(',')).toBe(false);
78 expect(Log.warn).toBeCalledWith(expect.stringMatching(/offline-mode/));
101 expect(
119 expect(Log.warn).toBeCalledWith(expect.stringMatching(/offline-mode/));
[all …]
/expo/packages/expo-font/src/__tests__/
H A DFont-test.native.ts72 expect(mockAsset.downloaded).toBe(true);
75 expect(Font.isLoaded('test-font')).toBe(true);
88 expect(mockAsset.downloaded).toBe(false);
103 expect(mockAsset.downloaded).toBe(true);
213 await expect(
294 expect(console.warn).toHaveBeenCalled();
308 expect(console.warn).toHaveBeenCalled();
316 expect(Font.isLoaded(fontName)).toBe(true);
327 expect(Font.isLoaded(fontName)).toBe(true);
358 expect(Font.isLoaded(fontName)).toBe(true);
[all …]

12345678910>>...35