Skip to content

Commit

Permalink
Remove from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mapedraza authored Aug 7, 2024
1 parent 83e4ebf commit 2cbb954
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,7 @@
{
"name":"location",
"type":"geo:point",
"expression": "${latitude}, ${longitude}",
"reverse": [
{
"object_id":"latitude",
"type": "string",
"expression": "${trim(substr(@location, indexOf(@location, \",\") + 1, length(@location)))}"
},
{
"object_id":"longitude",
"type": "string",
"expression": "${trim(substr(@location, 0, indexOf(@location, \",\")))}"
}
]
"expression": "${latitude}, ${longitude}"
}
],
"static_attributes": [],
Expand Down
2 changes: 0 additions & 2 deletions test/unit/ngsi-ld/provisioning/listProvisionedDevices-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,11 +184,9 @@ describe('NGSI-LD - Device provisioning API: List provisioned devices', function
should.exist(body.devices[2].attributes[0].entity_name);
should.exist(body.devices[2].attributes[0].entity_type);
should.exist(body.devices[2].attributes[1].expression);
should.exist(body.devices[2].attributes[2].reverse);
body.devices[2].attributes[0].entity_name.should.equal('Higro2000');
body.devices[2].attributes[0].entity_type.should.equal('Higrometer');
body.devices[2].attributes[1].expression.should.equal('${@humidity * 20}');
body.devices[2].attributes[2].reverse.length.should.equal(2);
done();
});
});
Expand Down
2 changes: 0 additions & 2 deletions test/unit/ngsiv2/provisioning/listProvisionedDevices-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,11 +183,9 @@ describe('NGSI-v2 - Device provisioning API: List provisioned devices', function
should.exist(body.devices[2].attributes[0].entity_name);
should.exist(body.devices[2].attributes[0].entity_type);
should.exist(body.devices[2].attributes[1].expression);
should.exist(body.devices[2].attributes[2].reverse);
body.devices[2].attributes[0].entity_name.should.equal('Higro2000');
body.devices[2].attributes[0].entity_type.should.equal('Higrometer');
body.devices[2].attributes[1].expression.should.equal('${@humidity * 20}');
body.devices[2].attributes[2].reverse.length.should.equal(2);
done();
});
});
Expand Down

0 comments on commit 2cbb954

Please sign in to comment.