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

refactor(*): configured eslint #10

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LironHazan
Copy link
Collaborator

No description provided.

@codecov
Copy link

codecov bot commented Oct 9, 2021

Codecov Report

Merging #10 (970dead) into master (3958405) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #10   +/-   ##
=======================================
  Coverage   93.46%   93.46%           
=======================================
  Files          34       34           
  Lines         658      658           
  Branches       82       82           
=======================================
  Hits          615      615           
  Misses         30       30           
  Partials       13       13           
Impacted Files Coverage Δ
src/MethodStubVerificator.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3958405...970dead. Read the comment docs.

@@ -0,0 +1,173 @@
{
"env": {
"browser": true,
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can toggle to false..

@@ -1,4 +1,5 @@
import {MethodToStub} from "./MethodToStub";
import {Mocker} from "./Mock";
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove..

@@ -91,14 +91,14 @@ describe("resetting mocked object", () => {
// given
foo.getBar();
foo.sumTwoNumbers(2, 3);
verify(mockedFoo.getBar()).calledBefore(mockedFoo.sumTwoNumbers(2, 3));
verify(mockedFoo.getBar()).calledBefore(mockedFoo.sumTwoNumbers(2, 3) as any);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need to go deeper on that.. cal before should expect a MethodToStub not any but mockedFoo.sumTwoNumbers(2, 3) doesn't return MethodToStub so I had to cast..

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

Successfully merging this pull request may close these issues.

1 participant