|
86 | 86 | test('meta tags can be added to the template', function () {
|
87 | 87 | seo()->tag('fb:image', 'foo');
|
88 | 88 |
|
89 |
| - expect(meta())->toContain('<meta property="fb:image" content="foo" />'); |
| 89 | + expect(meta())->toContain('<meta property="fb:image" content="foo">'); |
90 | 90 | });
|
91 | 91 |
|
92 | 92 | test('raw tags can be added to the template', function () {
|
|
114 | 114 | seo()->withUrl();
|
115 | 115 |
|
116 | 116 | expect(meta())
|
117 |
| - ->toContain('<meta property="og:url" content="http://localhost" />') |
118 |
| - ->toContain('<link rel="canonical" href="http://localhost" />'); |
| 117 | + ->toContain('<meta property="og:url" content="http://localhost">') |
| 118 | + ->toContain('<link rel="canonical" href="http://localhost">'); |
119 | 119 | });
|
120 | 120 |
|
121 | 121 | test('canonical url can be changed', function () {
|
|
124 | 124 | seo()->url('http://foo.com/bar');
|
125 | 125 |
|
126 | 126 | expect(meta())
|
127 |
| - ->toContain('<meta property="og:url" content="http://foo.com/bar" />') |
128 |
| - ->toContain('<link rel="canonical" href="http://foo.com/bar" />'); |
| 127 | + ->toContain('<meta property="og:url" content="http://foo.com/bar">') |
| 128 | + ->toContain('<link rel="canonical" href="http://foo.com/bar">'); |
129 | 129 | });
|
130 | 130 |
|
131 | 131 | test('og:title can be overridden using a tag', function () {
|
|
134 | 134 |
|
135 | 135 | expect(meta())
|
136 | 136 | ->toContain('<title>foo</title>')
|
137 |
| - ->toContain('<meta property="og:title" content="bar" />'); |
| 137 | + ->toContain('<meta property="og:title" content="bar">'); |
138 | 138 | });
|
139 | 139 |
|
140 | 140 | test('type can be overridden using the type method', function () {
|
141 |
| - expect(meta())->toContain('<meta property="og:type" content="website" />'); // default |
| 141 | + expect(meta())->toContain('<meta property="og:type" content="website">'); // default |
142 | 142 |
|
143 | 143 | seo()->type('foo');
|
144 | 144 |
|
145 | 145 | expect(meta())
|
146 |
| - ->toContain('<meta property="og:type" content="foo" />') // overridden |
| 146 | + ->toContain('<meta property="og:type" content="foo">') // overridden |
147 | 147 | ->not()->toContain('website');
|
148 | 148 | });
|
149 | 149 |
|
|
155 | 155 | test('og:locale can be added to the template', function () {
|
156 | 156 | seo()->locale('de_DE');
|
157 | 157 |
|
158 |
| - expect(meta())->toContain('<meta property="og:locale" content="de_DE" />'); |
| 158 | + expect(meta())->toContain('<meta property="og:locale" content="de_DE">'); |
159 | 159 | });
|
0 commit comments