Skip to content

Commit 0d75d45

Browse files
committed
fixing forbes test
1 parent 0aad765 commit 0d75d45

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tests/integration/redirect.spec.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -112,27 +112,23 @@ describe('redirect', function () {
112112
expect(result.ogLocale).to.be.eql('en');
113113
expect(result.twitterTitle).to.be.eql('3 Stocks Like Apple Was 10 Years Ago: Tesla, Nvidia And Alibaba');
114114
expect(result.twitterDescription).to.be.an('string').and.to.not.be.empty;
115-
expect(result.articlePublisher).to.be.eql('https://www.facebook.com/forbes');
116115
expect(result.ogImage).to.be.eql([{
117116
url: 'https://imageio.forbes.com/specials-images/imageserve/825671570/0x0.jpg?format=jpg&height=900&width=1600&fit=bounds',
118-
type: 'jpg',
117+
type: 'image/jpeg',
119118
}]);
120119
expect(result.twitterImage).to.be.eql([{
121120
url: 'https://imageio.forbes.com/specials-images/imageserve/825671570/0x0.jpg?format=jpg&height=600&width=1200&fit=bounds',
122121
}]);
123122
expect(result.requestUrl).to.be.eql('https://www.forbes.com/sites/kenkam/2017/09/28/3-stocks-like-apple-was-10-years-ago-tesla-nvidia-and-alibaba/#2636f6c2f0fa');
124123
expect(result.charset).to.be.eql('utf-8');
125124
expect(result.fbAppId).to.be.eql('123694841080850');
126-
expect(result.jsonLD).to.be.an('array').and.to.not.be.empty;
127125
expect(result.success).to.be.eql(true);
128126
expect(result).to.have.all.keys(
129-
'jsonLD',
130127
'favicon',
131128
'fbAppId',
132129
'ogDate',
133130
'articleAuthor',
134131
'articleSection',
135-
'articlePublisher',
136132
'author',
137133
'ogDescription',
138134
'ogImage',

0 commit comments

Comments
 (0)