diff --git a/tests/integration/basic.spec.ts b/tests/integration/basic.spec.ts index 4b4b487..7a5ce5a 100644 --- a/tests/integration/basic.spec.ts +++ b/tests/integration/basic.spec.ts @@ -30,6 +30,7 @@ describe('basic', function () { width: '300', height: '300', type: 'image/png', + alt: 'The Open Graph logo', }]); expect(result.requestUrl).to.be.eql('https://ogp.me/'); expect(result.charset).to.be.eql('utf-8'); @@ -61,6 +62,7 @@ describe('basic', function () { width: '300', height: '300', type: 'image/png', + alt: 'The Open Graph logo', }]); expect(result.requestUrl).to.be.eql('https://ogp.me/'); expect(result.charset).to.be.eql('utf-8'); @@ -94,6 +96,7 @@ describe('basic', function () { width: '300', height: '300', type: 'image/png', + alt: 'The Open Graph logo', }]); expect(response.result.requestUrl).to.be.eql('https://ogp.me/'); expect(response.result.charset).to.be.eql('utf-8'); @@ -112,6 +115,7 @@ describe('basic', function () { expect(result.ogUrl).to.be.eql('https://ogp.me/'); expect(result.ogDescription).to.be.eql('The Open Graph protocol enables any web page to become a rich object in a social graph.'); expect(result.ogImage).to.be.eql([{ + alt: 'The Open Graph logo', url: 'https://ogp.me/logo.png', width: '300', height: '300', diff --git a/tests/integration/static.spec.ts b/tests/integration/static.spec.ts index 2fcaa02..20ebebc 100644 --- a/tests/integration/static.spec.ts +++ b/tests/integration/static.spec.ts @@ -1760,6 +1760,7 @@ describe('static', function () { width: '1200', height: '630', type: 'image/jpeg', + alt: 'FILE - In this Oct. 8, 2014, file photo, a Wall Street address is carved in the side of a building in New York. Stocks are opening modestly higher on Wall Street, Friday, Aug. 11, 2017, led by gains in technology companies and banks. (AP Photo/Mark Lennihan, File)', }]); expect(result.twitterImage).to.be.eql([{ url: 'https://ca-times.brightspotcdn.com/dims4/default/3d21428/2147483647/strip/true/crop/2048x1152+0+51/resize/1200x675!/quality/90/?url=https%3A%2F%2Fcalifornia-times-brightspot.s3.amazonaws.com%2Ff2%2F6c%2F8f7e89b7eb2a7ecc01f245e3ec0b%2Fla-1502459693-4svslqel7u-snap-image', @@ -2800,6 +2801,7 @@ describe('static', function () { expect(result.ogLocale).to.be.eql('en'); expect(result.twitterUrl).to.be.eql('https://www.vox.com/recode/2020/6/11/21287395/jack-dorsey-start-small-billionaire-philanthropy-coronavirus-twitter-square-kaepernick-rihanna'); expect(result.ogImage).to.be.eql([{ + alt: 'Jack Dorsey Sydney Photo Shoot', url: 'https://cdn.vox-cdn.com/thumbor/PP5h21sGbjyDt0BoZYKpdNUsFFs=/0x0:4746x2485/fit-in/1200x630/cdn.vox-cdn.com/uploads/chorus_asset/file/20030444/524250960.jpg.jpg', width: '1200', height: '630', diff --git a/tests/unit/static.spec.ts b/tests/unit/static.spec.ts index 95c8763..6df59b0 100644 --- a/tests/unit/static.spec.ts +++ b/tests/unit/static.spec.ts @@ -112,6 +112,7 @@ describe('static check meta tags', function () { + `; @@ -128,6 +129,7 @@ describe('static check meta tags', function () { width: '1', height: '2', type: 'image/png', + alt: 'alt text', }]); expect(data.html).to.be.eql(metaHTML); expect(data.response).to.be.a('response');