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

Examples do not work #151

Closed
GermanBluefox opened this issue Oct 14, 2019 · 4 comments
Closed

Examples do not work #151

GermanBluefox opened this issue Oct 14, 2019 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@GermanBluefox
Copy link
Contributor

I tried to use an example from here: https://github.com/ioBroker/testing#example

And it works only after modifications:

assertObjectExists(theObject._id);

=>

expect(database.hasObject(theObject._id)).to.be.true;

Of course at the start I added const { expect } = require('chai');

@AlCalzone AlCalzone self-assigned this Oct 14, 2019
@AlCalzone AlCalzone added the bug Something isn't working label Oct 14, 2019
@AlCalzone
Copy link
Collaborator

Thanks, I'll check it out.

@AlCalzone
Copy link
Collaborator

@GermanBluefox Do you have a repo where I can reproduce this error without creating a new one?

@boellner
Copy link

the Example
how this can be used in a unit test
is using a deprecated function

/** @deprecated Adapter startup unit tests are no longer supported */
unit: typeof testAdapterWithMocks;

@AlCalzone
Copy link
Collaborator

Can you be more specific what the problem is? Screenshot or something is fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants