question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Testing services documentation unclear

See original GitHub issue

In the Testing Services documentation, a reference to the asyncData function is made, but the docs don’t explain where this function is coming from.

image

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
flash-mecommented, Dec 13, 2021

@AlixRoyere

of([some, values, here]) is always sync.

So

it('should return expected heroes (HttpClient called once)', () => {
  const expectedHeroes: Hero[] =
    [{ id: 1, name: 'A' }, { id: 2, name: 'B' }];

  httpClientSpy.get.and.returnValue(of(expectedHeroes));

  heroService.getHeroes().subscribe();

  expect(httpClientSpy.get.calls.count()).toBe(1, 'one call');
});

would be enough.

cheers flash ⚡

1reaction
ajsaraujocommented, Jul 15, 2021

It is enough. That’s how I did it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Deal with Bad Requirements as a Tester
#3) Conflicting Requirements – Asking someone to do two different things at same time is just getting him/her confused and system too is...
Read more >
How do I deal with poorly documented tests?
I work in a big multinational company. There are too many testers in my company whose test cases (i.e. test steps) are unclear...
Read more >
The key to writing good documentation: Testing your instructions
Writing good documentation requires you to set up a test environment and test all of your instructions -- testing the instructions yourself ...
Read more >
How to Write Test Cases Without Requirements - Mindful QA
How do you write test cases without requirements? In a fast-paced Agile process, you won't always have them. Learn how to write test...
Read more >
Software Testing: 101 Top Tips, Tricks and Strategies - Stackify
12. Develop “rules of thumb” – and document them. “As testers, we often use rules of thumb throughout a project. For example, we...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found