mirror of
https://github.com/bellingcat/datasheet-server.git
synced 2026-06-12 21:38:32 +03:00
update tests
This commit is contained in:
@@ -24,12 +24,12 @@ test('defaultBlueprint exports', t => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
test('byColumn blueprinter generates expected output', t => {
|
test('byColumn blueprinter generates expected output', t => {
|
||||||
const actual = byColumn('eg ColumnBlueprint', 'egSourceName', 'egSourceId', egInput1)
|
const actual = byColumn('eg ColumnBlueprint', 'egSheetName', 'egSheetId', egInput1)
|
||||||
const expected = R.clone(defaultBlueprint)
|
const expected = R.clone(defaultBlueprint)
|
||||||
expected.name = 'eg ColumnBlueprint'
|
expected.name = 'eg ColumnBlueprint'
|
||||||
expected.source = {
|
expected.sheet = {
|
||||||
id: 'egSourceId',
|
id: 'egSheetId',
|
||||||
name: 'egSourceName'
|
name: 'egSheetName'
|
||||||
}
|
}
|
||||||
expected.routes['h1'] = R.clone(defaultRoute)
|
expected.routes['h1'] = R.clone(defaultRoute)
|
||||||
expected.routes['h1'].data = [1, 4]
|
expected.routes['h1'].data = [1, 4]
|
||||||
@@ -41,12 +41,12 @@ test('byColumn blueprinter generates expected output', t => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
test('byRow blueprinter generates expected output', t => {
|
test('byRow blueprinter generates expected output', t => {
|
||||||
const actual = byRow('egRowBlueprint', 'egSourceName', 'egSourceId', egInput1, 'items')
|
const actual = byRow('egRowBlueprint', 'egSheetName', 'egSheetId', egInput1, 'items')
|
||||||
const expected = R.clone(defaultBlueprint)
|
const expected = R.clone(defaultBlueprint)
|
||||||
expected.name = 'egRowBlueprint'
|
expected.name = 'egRowBlueprint'
|
||||||
expected.source = {
|
expected.sheet = {
|
||||||
id: 'egSourceId',
|
id: 'egSheetId',
|
||||||
name: 'egSourceName'
|
name: 'egSheetName'
|
||||||
}
|
}
|
||||||
expected.routes['items'] = R.clone(defaultRoute)
|
expected.routes['items'] = R.clone(defaultRoute)
|
||||||
expected.routes['items'].data = [{
|
expected.routes['items'].data = [{
|
||||||
|
|||||||
Reference in New Issue
Block a user