We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c0c2eb2 commit a290f00Copy full SHA for a290f00
tests/ScalarTest.php
@@ -18,10 +18,21 @@
18
$response->assertViewIs('scalar::reference');
19
});
20
21
+it('contains the OpenAPI document URL', function () {
22
+ $response = $this->get(config('scalar.path'));
23
+
24
+ $response->assertOk()
25
+ ->assertViewIs('scalar::reference')
26
+ ->assertSee('data-url')
27
+ ->assertSee(config('scalar.url'));
28
+});
29
30
it('contains the jsDelivr URL', function () {
31
$response = $this->get(config('scalar.path'));
32
- $response->assertSee(config('scalar.cdn'));
33
34
35
+ ->assertSee('https://cdn.jsdelivr.net/npm/@scalar/galaxy/dist/latest.json');
36
37
38
it('reflects changes in the config', function () {
0 commit comments