Skip to content

Commit

Permalink
Update geoproperties-test.js
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvaroVega committed Apr 9, 2021
1 parent 6f6f1bb commit 1fc551b
Showing 1 changed file with 31 additions and 30 deletions.
61 changes: 31 additions & 30 deletions test/unit/ngsiv2/ngsiService/geoproperties-test.js
Expand Up @@ -24,37 +24,38 @@
*/

const iotAgentLib = require('../../../../lib/fiware-iotagent-lib');
const utils = require('../../../tools/utils');
const should = require('should');
// FIXME: #1012
//const utils = require('../../../tools/utils');
//const should = require('should');
const logger = require('logops');
const nock = require('nock');
let contextBrokerMock;
const iotAgentConfig = {
autocast: true,
contextBroker: {
host: '192.168.1.1',
port: '1026',
ngsiVersion: 'v2'
},
server: {
port: 4041
},
types: {
Light: {
commands: [],
type: 'Light',
active: [
{
name: 'location',
type: 'geo:json'
}
]
}
},
service: 'smartGondor',
subservice: 'gardens',
providerUrl: 'http://smartGondor.com'
};
//const nock = require('nock');
//let contextBrokerMock;
//const iotAgentConfig = {
// autocast: true,
// contextBroker: {
// host: '192.168.1.1',
// port: '1026',
// ngsiVersion: 'v2'
// },
// server: {
// port: 4041
// },
// types: {
// Light: {
// commands: [],
// type: 'Light',
// active: [
// {
// name: 'location',
// type: 'geo:json'
// }
// ]
// }
// },
// service: 'smartGondor',
// subservice: 'gardens',
// providerUrl: 'http://smartGondor.com'
//};

describe('NGSI-v2 - Geo-JSON types autocast test', function () {
beforeEach(function () {
Expand Down

0 comments on commit 1fc551b

Please sign in to comment.