1
0
Fork 0
mirror of https://github.com/archtechx/laravel-seo.git synced 2025-12-12 09:54:03 +00:00

Make flipp use raw values

This commit is contained in:
Samuel Štancl 2021-05-24 19:24:22 +02:00
parent 9cebfec4c8
commit ab1e01b066
3 changed files with 33 additions and 3 deletions

View file

@ -19,3 +19,12 @@ test('modifiers are not applied on default values', function () {
expect(seo('title'))->toBe('ArchTech — Web development agency');
});
test('modifiers can be bypassed by using the raw method', function () {
seo()->title(modify: fn (string $title) => $title . ' | ArchTech');
seo()->title('About us');
expect(seo()->get('title'))->toBe('About us | ArchTech');
expect(seo()->raw('title'))->toBe('About us');
});