mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-06 21:42:49 +00:00
test: improve coverage of tests for e2e
This commit is contained in:
@@ -111,4 +111,11 @@ export class E2EConnectorSpec {
|
||||
return indexSamples(httpClient, {to: 'http://localhost', samples: './node_modules/@openstapps/core/test/resources'})
|
||||
.should.be.rejectedWith(ApiError);
|
||||
}
|
||||
|
||||
@test
|
||||
async indexShouldFailDirectoryWithoutData() {
|
||||
return indexSamples(httpClient, {to: 'http://localhost', samples: './test/emptyDir/'})
|
||||
.should.be.rejectedWith('Could not index samples. None were retrived from the file system.');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
4
test/emptyDir/.gitignore
vendored
Normal file
4
test/emptyDir/.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
# Ignore everything in this directory
|
||||
*
|
||||
# Except this file
|
||||
!.gitignore
|
||||
Reference in New Issue
Block a user