mirror of
https://github.com/bellingcat/datasheet-server.git
synced 2026-06-08 03:18:33 +03:00
Fixed tests
This commit is contained in:
@@ -54,14 +54,7 @@ test('should launch', t => {
|
||||
})
|
||||
|
||||
const passUrls = [
|
||||
// /
|
||||
'/api/',
|
||||
// /blueprints
|
||||
'/api/blueprints',
|
||||
// /:sheet/:tab/:resource
|
||||
'/api/example/export_events/rows',
|
||||
// /:sheet/:tab/:resource/:frag
|
||||
'/api/example/export_events/rows/1'
|
||||
]
|
||||
|
||||
const failUrls = [
|
||||
@@ -77,6 +70,7 @@ passUrls.forEach(function (url) {
|
||||
.then(checkStatus)
|
||||
.then(res => res.json())
|
||||
.then(json => {
|
||||
console.info('JSON: ', json)
|
||||
t.pass()
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user