Support root asset folder #931
Annotations
7 errors
src/lib/services/contents/entry.spec.js > Test getEntryTitle() > metadata:
src/lib/services/contents/entry.spec.js#L63
AssertionError: expected 'content/tags/net' to deeply equal 'net'
Expected: "net"
Received: "content/tags/net"
❯ src/lib/services/contents/entry.spec.js:63:35
|
src/lib/services/contents/draft/save.spec.js > Test getEntryAssetFolderPaths() > simple path, multiple folders, entry relative:
src/lib/services/contents/draft/save.spec.js#L52
AssertionError: expected { …(3) } to deeply equal { …(3) }
- Expected
+ Received
Object {
- "internalAssetFolder": "src/content/blog/foo",
+ "internalAssetFolder": "src/content/blog",
"internalBaseAssetFolder": "src/content/blog",
- "publicAssetFolder": "../foo",
+ "publicAssetFolder": "..",
}
❯ src/lib/services/contents/draft/save.spec.js:52:80
|
src/lib/services/contents/draft/save.spec.js > Test getEntryAssetFolderPaths() > nested path, multiple folders, entry relative:
src/lib/services/contents/draft/save.spec.js#L67
AssertionError: expected { …(3) } to deeply equal { …(3) }
- Expected
+ Received
Object {
- "internalAssetFolder": "src/content/blog/foo",
+ "internalAssetFolder": "src/content/blog",
"internalBaseAssetFolder": "src/content/blog",
- "publicAssetFolder": "../../foo",
+ "publicAssetFolder": "..",
}
❯ src/lib/services/contents/draft/save.spec.js:67:80
|
src/lib/services/contents/draft/save.spec.js > Test getEntryAssetFolderPaths() > nested path, multiple files, entry relative:
src/lib/services/contents/draft/save.spec.js#L97
AssertionError: expected { …(3) } to deeply equal { …(3) }
- Expected
+ Received
Object {
- "internalAssetFolder": "src/content/blog/foo",
+ "internalAssetFolder": "src/content/blog",
"internalBaseAssetFolder": "src/content/blog",
"publicAssetFolder": "",
}
❯ src/lib/services/contents/draft/save.spec.js:97:80
|
src/lib/services/contents/draft/save.spec.js > Test getEntryAssetFolderPaths() > nested path, single file, entry relative:
src/lib/services/contents/draft/save.spec.js#L127
AssertionError: expected { …(3) } to deeply equal { …(3) }
- Expected
+ Received
Object {
- "internalAssetFolder": "src/content/blog/foo",
+ "internalAssetFolder": "src/content/blog",
"internalBaseAssetFolder": "src/content/blog",
"publicAssetFolder": "",
}
❯ src/lib/services/contents/draft/save.spec.js:127:80
|
Test
Process completed with exit code 1.
|
Check
Process completed with exit code 1.
|