mirror of
https://forge.chapril.org/tykayn/wololo
synced 2025-06-20 01:34:42 +02:00
up tests
This commit is contained in:
parent
6ac3a272ce
commit
088aa1f5f4
2 changed files with 111 additions and 47 deletions
43
tests/data/mappings_to_test.js
Normal file
43
tests/data/mappings_to_test.js
Normal file
|
@ -0,0 +1,43 @@
|
|||
export const mappingTruthy = {
|
||||
config_name: 'testing config mappingTruthy',
|
||||
tags: {
|
||||
consolidated_is_lon_lat_correct: {
|
||||
key_converted: 'consolidated_is_lon_lat_correct',
|
||||
truthy_value: 'succès'
|
||||
}
|
||||
},
|
||||
default_properties_of_point: {}
|
||||
};
|
||||
|
||||
export const mappingFalsy = {
|
||||
config_name: 'testing config mappingFalsy',
|
||||
tags: {
|
||||
consolidated_city: {
|
||||
key_converted: 'consolidated_city',
|
||||
falsy_value: 'pas ouf succès'
|
||||
}
|
||||
},
|
||||
default_properties_of_point: {}
|
||||
};
|
||||
|
||||
export const mappingBoolean = {
|
||||
config_name: 'testing config mappingBoolean',
|
||||
tags: {
|
||||
consolidated_is_lon_lat_correct: {
|
||||
key_converted: 'consolidated_is_lon_lat_correct',
|
||||
convert_to_boolean_value: true
|
||||
}
|
||||
},
|
||||
default_properties_of_point: {}
|
||||
};
|
||||
|
||||
export const mappingPhone = {
|
||||
config_name: 'testing config mappingPhone',
|
||||
tags: {
|
||||
telephone_operateur: {
|
||||
key_converted: 'phone',
|
||||
convert_to_phone: true
|
||||
}
|
||||
},
|
||||
default_properties_of_point: {}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue