-
When I looked, it didn't seem like it was possible to mock the various usages of `time.Now` making it hard to do nice testing around this library.
Thanks!
-
Hi, mocha is just test runner, but it's lacking jest's asserting and mocking functionality. I didn't find any fable's bindinds to neither chai nor sinon, which are most popular for mocha. What do you …
-
This doesn't work.
`promise` is *pending* and it will not be resolved :(
```typescript
interface ITest {
f(): Promise;
}
describe('test suite', () => {
it('test', async () => {
…
-
Hello everyone.
Working with the examples on version 2.3.0, I have created the following test:
``` typescript
abstract class Foo {
abstract getBar (num: number): string;
}
// Creating mock
…
-
```
How about mocking (doReturn-when) with reflection? i.e. method name and
arguments are provided at the run-time. One use that I can find is when
using dynamically generated classes.
class A {
p…
-
```
How about mocking (doReturn-when) with reflection? i.e. method name and
arguments are provided at the run-time. One use that I can find is when
using dynamically generated classes.
class A {
p…
-
I can use mockito with groovy only with @CompileStatic classes
I tried to use this library, but everytime I launch the test (compilestatic or not) this error ir thrown
With
```
compile 'org.…
-
Is it possible to mock things for quokka if you create files that are not in the env they later will run in? Or for REST services and so on?
ghost updated
7 years ago
-
I see that this is not supported yet:
> 'Argument of type 'typeof AbstractClass' is not assignable to parameter of type 'new (...args: any[]) => AbstractClass'.
Cannot assign an abstract construct…
-
Sorry I couldn't find the solution to this problem.
So I am writing a unit test for a sensor API. The API has a sensor.c, sensor.h and sensor_types.h file.
sensor.c has various functions needed to …