UNPKG

@mk2001/iobroker.go-echarger

Version:

go-e ist die Aufforderung, sich elektrisch zu bewegen. e-Mobilität ist unser Antrieb, wobei unsere Kernkompetenz die Ladetechnik für Elektroautos ist. Von der einzelnen Ladestation für e-Autos über Photovoltaik-Anbindung bis hin zum Lastmanagement von gan

31 lines (23 loc) 818 B
"use strict"; /** * This is a dummy TypeScript test file using chai and mocha * * It's automatically excluded from npm and its build output is excluded from both git and npm. * It is advised to test all your modules with accompanying *.test.js-files */ // tslint:disable:no-unused-expression const { expect } = require("chai"); // import { functionToTest } from "./moduleToTest"; describe("module to test => function to test", () => { // initializing logic const expected = 5; it(`should return ${expected}`, () => { const result = 5; // assign result a value from functionToTest expect(result).to.equal(expected); // or using the should() syntax result.should.equal(expected); }); // ... more tests => it }); // ... more test suites => describe