Skip to content

Commit

Permalink
build(dev-deps): move to standard 12.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jezhiggins committed Sep 5, 2018
1 parent ad4c55a commit b4bce4b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"nyc": "13.0.1",
"rimraf": "2.6.2",
"semantic-release": "15.9.12",
"standard": "11.0.1",
"standard": "12.0.1",
"@semantic-release/changelog": "3.0.0",
"@semantic-release/git": "7.0.3",
"@wmfs/tymly": "1.21.0",
Expand Down
26 changes: 13 additions & 13 deletions test/addressbase-premium-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,24 +114,24 @@ describe('process addressbase-premium', function () {

describe('verify properties', () => {
it('flattened csv outout', () => {
const property = fs.readFileSync(propertyFlattenedFile, {encoding: 'utf8'}).split('\n')
const propertyExpected = fs.readFileSync(propertyExpectedFile, {encoding: 'utf8'}).split('\n')
const property = fs.readFileSync(propertyFlattenedFile, { encoding: 'utf8' }).split('\n')
const propertyExpected = fs.readFileSync(propertyExpectedFile, { encoding: 'utf8' }).split('\n')
expect(property).to.eql(propertyExpected)
})

it('smithereens output', () => {
const property = fs.readFileSync(propertyExpectedFile, {encoding: 'utf8'}).split('\n')
const property = fs.readFileSync(propertyExpectedFile, { encoding: 'utf8' }).split('\n')
.map(line => line.replace(/"/g, '')) // strip quote marks
.map(line => stripColumn(line, 4)) // strip changeState marker

const upsert = fs.readFileSync(propertiesUpsertsFile, {encoding: 'utf8'}).split('\r\n')
const upsert = fs.readFileSync(propertiesUpsertsFile, { encoding: 'utf8' }).split('\r\n')
.map(line => stripColumn(line, 1)) // strip hashsum

expect(property).to.eql(upsert)
})

it('database import', async () => {
const propertyLpis = fs.readFileSync(propertyExpectedFile, {encoding: 'utf8'}).split('\n')
const propertyLpis = fs.readFileSync(propertyExpectedFile, { encoding: 'utf8' }).split('\n')
.map(line => line.split(',')[0]) // extract LPI
.slice(1, -1) // drop header line, and empty last line
.map(line => line.replace(/"/g, '')) // strip quote marks
Expand All @@ -147,24 +147,24 @@ describe('process addressbase-premium', function () {

describe('verify streets', () => {
it('flattened csv outout', () => {
const streets = fs.readFileSync(streetsFlattenedFile, {encoding: 'utf8'}).split('\n')
const streetsExpected = fs.readFileSync(streetsExpectedFile, {encoding: 'utf8'}).split('\n')
const streets = fs.readFileSync(streetsFlattenedFile, { encoding: 'utf8' }).split('\n')
const streetsExpected = fs.readFileSync(streetsExpectedFile, { encoding: 'utf8' }).split('\n')
expect(streets).to.eql(streetsExpected)
})

it('smithereens output', () => {
const streets = fs.readFileSync(streetsExpectedFile, {encoding: 'utf8'}).split('\n')
const streets = fs.readFileSync(streetsExpectedFile, { encoding: 'utf8' }).split('\n')
.map(line => line.replace(/"/g, '')) // strip quote marks
.map(line => stripColumn(line, 1)) // strip changeState marker

const upsert = fs.readFileSync(streetsUpsertsFile, {encoding: 'utf8'}).split('\r\n')
const upsert = fs.readFileSync(streetsUpsertsFile, { encoding: 'utf8' }).split('\r\n')
.map(line => stripColumn(line, 1)) // strip hashsum

expect(upsert).to.eql(streets)
})

it('database import', async () => {
const streetsUsrns = fs.readFileSync(streetsExpectedFile, {encoding: 'utf8'}).split('\n')
const streetsUsrns = fs.readFileSync(streetsExpectedFile, { encoding: 'utf8' }).split('\n')
.map(line => line.split(',')[0]) // extract USRN
.slice(1, -1) // drop header line, and empty last line
.map(line => line.replace(/"/g, '')) // strip quote marks
Expand All @@ -179,7 +179,7 @@ describe('process addressbase-premium', function () {

describe('verify holding view', () => {
it('database import', async () => {
const propertyLpis = fs.readFileSync(propertyExpectedFile, {encoding: 'utf8'}).split('\n')
const propertyLpis = fs.readFileSync(propertyExpectedFile, { encoding: 'utf8' }).split('\n')
.slice(1, -1) // drop header line, and empty last line
.filter(line => line.split(',')[1] === '1') // only look for active lpis
.map(line => line.split(',')[0]) // extract LPI
Expand Down Expand Up @@ -236,8 +236,8 @@ describe('process addressbase-premium', function () {
})

it('verify upserts output', () => {
const upsert = fs.readFileSync(syncUpsertsFile, {encoding: 'utf8'}).split('\n').map(s => s.trim())
const upsertExpected = fs.readFileSync(syncExpectedFile, {encoding: 'utf8'}).split('\n').map(s => s.trim())
const upsert = fs.readFileSync(syncUpsertsFile, { encoding: 'utf8' }).split('\n').map(s => s.trim())
const upsertExpected = fs.readFileSync(syncExpectedFile, { encoding: 'utf8' }).split('\n').map(s => s.trim())

expect(upsert.length).to.eql(upsertExpected.length)
// expect(upsert).to.contains.members(upsertExpected)
Expand Down

0 comments on commit b4bce4b

Please sign in to comment.