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

address-book.test chai has no member expect #1095

Open
sudo-pel opened this issue Jul 27, 2021 · 0 comments
Open

address-book.test chai has no member expect #1095

sudo-pel opened this issue Jul 27, 2021 · 0 comments

Comments

@sudo-pel
Copy link

I was directed to post an issue on the repo after contacting support.

I am trying to run the first test on the address book challenge, following the solution and I am being given the error "No test files found". I tried to fix this using the solution shown here (#1052), which worked somewhat, but now I am running into a different error;

test/address-book.test.ts:19:27 - error TS2339: Property 'name' does not exist on type 'Function'.

19     expect(ab.constructor.name).to.eq("AddressBook");

which is not encountered in the course. I have made no other alterations to any of the files.

Additionally, despite installing chai, in the address-book.test.ts file, I am being told that module "chai" has no member "expect".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant