Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 933f7f8

Browse filesBrowse files
committed
tests: adjusts provides
1 parent 373a1f5 commit 933f7f8
Copy full SHA for 933f7f8

File tree

Expand file treeCollapse file tree

1 file changed

+6
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-1
lines changed

‎tests/ServiceProvider.php

Copy file name to clipboardExpand all lines: tests/ServiceProvider.php
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
use Illuminate\Config\Repository;
44
use OpenAI\Client;
5+
use OpenAI\Contracts\ClientContract;
56
use OpenAI\Laravel\Exceptions\ApiKeyIsMissing;
67
use OpenAI\Laravel\ServiceProvider;
78

@@ -51,5 +52,9 @@
5152

5253
$provides = (new ServiceProvider($app))->provides();
5354

54-
expect($provides)->toBe([Client::class]);
55+
expect($provides)->toBe([
56+
Client::class,
57+
ClientContract::class,
58+
'openai',
59+
]);
5560
});

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.