Skip to content

Commit

Permalink
Fix error in require path for package.json
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Krug <[email protected]>
  • Loading branch information
michikrug committed Jun 8, 2021
1 parent 2df56af commit 14e9f72
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion functions/devices/default.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint-disable no-unused-vars */
const packageVersion = require('../../package.json').version;
const packageVersion = require('../package.json').version;

class DefaultDevice {
static get type() {
Expand Down
2 changes: 1 addition & 1 deletion tests/devices/default.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const Device = require('../../functions/devices/default.js');
const packageVersion = require('../../package.json').version;
const packageVersion = require('../../functions/package.json').version;

describe('Default Device', () => {
const item = {
Expand Down
2 changes: 1 addition & 1 deletion tests/openhab.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const OpenHAB = require('../functions/openhab.js');
const packageVersion = require('../package.json').version;
const packageVersion = require('../functions/package.json').version;

describe('OpenHAB', () => {
test('getCommandType', () => {
Expand Down

0 comments on commit 14e9f72

Please sign in to comment.