Skip to content

Commit

Permalink
fix(): update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
reecebrend committed Jun 13, 2019
1 parent 7871b69 commit 78c16db
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion test/fixtures/input/inserts/building.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.uprn,building_area,height_of_building,sprinkler_coverage
.uprn,footprint,height,sprinkler_coverage
1234567890,700.00,5.00,100
1234567891,1500.00,7.00,75
1234567892,120.00,6.00,40
Expand Down
30 changes: 15 additions & 15 deletions test/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,52 +65,52 @@ describe('data import', function () {

it('Should be the correct data in the database', function (done) {
client.query(
'select uprn, building_area, height_of_building, sprinkler_coverage from wmfs.building order by uprn',
'select uprn, footprint, height, sprinkler_coverage from wmfs.building order by uprn',
function (err, result) {
if (err) {
done(err)
} else {
expect(result.rows).to.eql(
[
{
'building_area': '700.00',
'height_of_building': '5.00',
'footprint': '700.00',
'height': '5.00',
'sprinkler_coverage': '100',
'uprn': '1234567890'
},
{
'building_area': '1500.00',
'height_of_building': '7.00',
'footprint': '1500.00',
'height': '7.00',
'sprinkler_coverage': '75',
'uprn': '1234567891'
},
{
'building_area': '120.00',
'height_of_building': '6.00',
'footprint': '120.00',
'height': '6.00',
'sprinkler_coverage': '40',
'uprn': '1234567892'
},
{
'building_area': '1000.00',
'height_of_building': '24.00',
'footprint': '1000.00',
'height': '24.00',
'sprinkler_coverage': '100',
'uprn': '1234567893'
},
{
'building_area': '1750.00',
'height_of_building': '60.00',
'footprint': '1750.00',
'height': '60.00',
'sprinkler_coverage': '50',
'uprn': '1234567894'
},
{
'building_area': '12500.00',
'height_of_building': '48.00',
'footprint': '12500.00',
'height': '48.00',
'sprinkler_coverage': '60',
'uprn': '1234567895'
},
{
'building_area': '350.00',
'height_of_building': '10.00',
'footprint': '350.00',
'height': '10.00',
'sprinkler_coverage': '100',
'uprn': '1234567896'
}
Expand Down

0 comments on commit 78c16db

Please sign in to comment.