Skip to content

Commit 4933982

Browse files
committed
Added test for nested folder
1 parent 530c76a commit 4933982

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/integration/patch-test.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,17 @@ describe('PATCH', () => {
112112
text: 'Patch applied successfully',
113113
result: '@prefix : </write-only.ttl#>.\n@prefix tim: </>.\n\ntim:a tim:b tim:c.\n\ntim:d tim:e tim:f.\n\ntim:x tim:y tim:z.\n\n'
114114
}))
115+
116+
describe('on a resource with parent folders that do not exist', describePatch({
117+
path: '/folder/cool.ttl',
118+
exists: false,
119+
patch: `<> solid:patches <https://tim.localhost:7777/folder/cool.ttl>;
120+
solid:inserts { <x> <y> <z>. }.`
121+
}, {
122+
status: 200,
123+
text: 'Patch applied successfully',
124+
result: '@prefix : <#>.\n@prefix fol: <./>.\n\nfol:x fol:y fol:z.\n\n'
125+
}))
115126
})
116127

117128
describe('with insert and where', () => {

0 commit comments

Comments
 (0)