fix(blog): normalize inline authors socials #4846
Annotations
15 errors
getBlogPostAuthors › getBlogPostAuthors do not throws if inline author imageURL is a link to a file:
packages/docusaurus-plugin-content-blog/src/__tests__/authors.test.ts#L840
expect(received).toEqual(expected) // deep equality
- Expected - 0
+ Received + 1
Array [
Object {
"imageURL": "./ozaki.png",
"key": null,
"page": null,
+ "socials": Object {},
},
]
at Object.toEqual (packages/docusaurus-plugin-content-blog/src/__tests__/authors.test.ts:840:25)
|
getBlogPostAuthors › getBlogPostAuthors can return imageURL without baseUrl for inline authors:
packages/docusaurus-plugin-content-blog/src/__tests__/authors.test.ts#L867
expect(received).toEqual(expected) // deep equality
- Expected - 0
+ Received + 1
Array [
Object {
"imageURL": "/ozaki.png",
"key": null,
"page": null,
+ "socials": Object {},
},
]
at Object.toEqual (packages/docusaurus-plugin-content-blog/src/__tests__/authors.test.ts:867:7)
|
getBlogPostAuthors › getBlogPostAuthors normalize imageURL with baseUrl for inline authors:
packages/docusaurus-plugin-content-blog/src/__tests__/authors.test.ts#L886
expect(received).toEqual(expected) // deep equality
- Expected - 0
+ Received + 1
Array [
Object {
"imageURL": "/img/ozaki.png",
"key": null,
"page": null,
+ "socials": Object {},
},
]
at Object.toEqual (packages/docusaurus-plugin-content-blog/src/__tests__/authors.test.ts:886:7)
|
getBlogPostAuthors › getBlogPostAuthors normalize imageURL from subfolder without baseUrl for inline authors:
packages/docusaurus-plugin-content-blog/src/__tests__/authors.test.ts#L905
expect(received).toEqual(expected) // deep equality
- Expected - 0
+ Received + 1
Array [
Object {
"imageURL": "/img/ozaki.png",
"key": null,
"page": null,
+ "socials": Object {},
},
]
at Object.toEqual (packages/docusaurus-plugin-content-blog/src/__tests__/authors.test.ts:905:7)
|
getBlogPostAuthors › getBlogPostAuthors normalize imageURL from subfolder with baseUrl for inline authors:
packages/docusaurus-plugin-content-blog/src/__tests__/authors.test.ts#L924
expect(received).toEqual(expected) // deep equality
- Expected - 0
+ Received + 1
Array [
Object {
"imageURL": "/img/img/ozaki.png",
"key": null,
"page": null,
+ "socials": Object {},
},
]
at Object.toEqual (packages/docusaurus-plugin-content-blog/src/__tests__/authors.test.ts:924:7)
|
Windows Tests (18.0)
Process completed with exit code 1.
|
Windows Tests (22)
The job was canceled because "_18_0" failed.
|
getBlogPostAuthors › getBlogPostAuthors do not throws if inline author imageURL is a link to a file:
packages/docusaurus-plugin-content-blog/src/__tests__/authors.test.ts#L840
expect(received).toEqual(expected) // deep equality
- Expected - 0
+ Received + 1
Array [
Object {
"imageURL": "./ozaki.png",
"key": null,
"page": null,
+ "socials": Object {},
},
]
at Object.toEqual (packages/docusaurus-plugin-content-blog/src/__tests__/authors.test.ts:840:25)
|
getBlogPostAuthors › getBlogPostAuthors can return imageURL without baseUrl for inline authors:
packages/docusaurus-plugin-content-blog/src/__tests__/authors.test.ts#L867
expect(received).toEqual(expected) // deep equality
- Expected - 0
+ Received + 1
Array [
Object {
"imageURL": "/ozaki.png",
"key": null,
"page": null,
+ "socials": Object {},
},
]
at Object.toEqual (packages/docusaurus-plugin-content-blog/src/__tests__/authors.test.ts:867:7)
|
getBlogPostAuthors › getBlogPostAuthors normalize imageURL with baseUrl for inline authors:
packages/docusaurus-plugin-content-blog/src/__tests__/authors.test.ts#L886
expect(received).toEqual(expected) // deep equality
- Expected - 0
+ Received + 1
Array [
Object {
"imageURL": "/img/ozaki.png",
"key": null,
"page": null,
+ "socials": Object {},
},
]
at Object.toEqual (packages/docusaurus-plugin-content-blog/src/__tests__/authors.test.ts:886:7)
|
getBlogPostAuthors › getBlogPostAuthors normalize imageURL from subfolder without baseUrl for inline authors:
packages/docusaurus-plugin-content-blog/src/__tests__/authors.test.ts#L905
expect(received).toEqual(expected) // deep equality
- Expected - 0
+ Received + 1
Array [
Object {
"imageURL": "/img/ozaki.png",
"key": null,
"page": null,
+ "socials": Object {},
},
]
at Object.toEqual (packages/docusaurus-plugin-content-blog/src/__tests__/authors.test.ts:905:7)
|
getBlogPostAuthors › getBlogPostAuthors normalize imageURL from subfolder with baseUrl for inline authors:
packages/docusaurus-plugin-content-blog/src/__tests__/authors.test.ts#L924
expect(received).toEqual(expected) // deep equality
- Expected - 0
+ Received + 1
Array [
Object {
"imageURL": "/img/img/ozaki.png",
"key": null,
"page": null,
+ "socials": Object {},
},
]
at Object.toEqual (packages/docusaurus-plugin-content-blog/src/__tests__/authors.test.ts:924:7)
|
Windows Tests (22)
Process completed with exit code 1.
|
Windows Tests (20)
The job was canceled because "_18_0" failed.
|
Windows Tests (20)
The operation was canceled.
|