Skip to content

Commit

Permalink
fix(parser): Remove ci and add cid
Browse files Browse the repository at this point in the history
  • Loading branch information
lgaticaq committed Oct 20, 2016
1 parent e419dd6 commit c76303f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const data = meitrack.parse(raw);
mcc: '413',
mnc: '1',
lac: 63200,
ci: 14643,
cid: 14643,
status: {
input: {
'1': false,
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ const getMvt380 = raw => {
mcc: match[23],
mnc: match[24],
lac: parseInt(match[25], 16),
ci: parseInt(match[26], 16),
cid: parseInt(match[26], 16),
status: {
output: {
'1': status[15] === '1',
Expand Down
2 changes: 1 addition & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ describe('meitrack-parser', () => {
expect(data.mcc).to.eql('730');
expect(data.mnc).to.eql('1');
expect(data.lac).to.eql(13011);
expect(data.ci).to.eql(41023);
expect(data.cid).to.eql(41023);
expect(data.status.input['1']).to.be.false;
expect(data.status.input['2']).to.be.false;
expect(data.status.input['3']).to.be.false;
Expand Down

0 comments on commit c76303f

Please sign in to comment.