Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for #589: Update README.md #590

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ tests.integration(path.join(__dirname, ".."), {
harness = getHarness();
});

it("Should work", () => {
return new Promise(async (resolve) => {
it("Should work", (done) => {
new Promise(async (resolve) => {
// Start the adapter and wait until it has started
await harness.startAdapterAndWait();

Expand All @@ -72,6 +72,7 @@ tests.integration(path.join(__dirname, ".."), {
resolve();
});
});
done();
});
});

Expand Down Expand Up @@ -103,8 +104,9 @@ tests.unit(path.join(__dirname, ".."), {
// Define your own tests inside defineAdditionalTests.
// If you need predefined objects etc. here, you need to take care of it yourself
defineAdditionalTests() {
it("works", () => {
it("works", (done) => {
// see below how these could look like
done();
});
},
});
Expand Down Expand Up @@ -183,7 +185,7 @@ tests.unit(path.join(__dirname, ".."), {
database.clear();
});

it("works", () => {
it("works", (done) => {
// Create an object in the fake db we will use in this test
const theObject: ioBroker.PartialObject = {
_id: "whatever",
Expand All @@ -198,6 +200,7 @@ tests.unit(path.join(__dirname, ".."), {

// Assert that the object still exists
assertObjectExists(theObject._id);
done();
});
});
},
Expand Down