data icon indicating copy to clipboard operation
data copied to clipboard

Fix testcase stub of `createModelDataFor`

Open machty opened this issue 3 years ago • 5 comments

createModelDataFor was the old name before it was changed to createRecordDataFor

machty avatar Sep 05 '21 13:09 machty

@machty can you please add an assert in the code we are stubbing to ensure this time it is getting called.

igorT avatar Sep 07 '21 05:09 igorT

@igorT while addressing your feedback I noticed these tests had an identical setup and what appeared to be a lot of leftover cruft from the original RFC implementation. It's much smaller now, performs the same tests, and the stub assertion you asked for is accomplished just by testing that that the constructed RecordData for a model has the expected type (which is what one of the tests was doing before).

machty avatar Sep 07 '21 12:09 machty

@machty great work!

igorT avatar Sep 07 '21 12:09 igorT

@machty if you hapeen to have time to rebase this I think the tests will pass and I'd be happy to merge

runspired avatar Jul 26 '22 23:07 runspired

something is odd here, the more recent commits clearly show test refactoring that the github diff cannot seem to see :/

runspired avatar Sep 16 '23 22:09 runspired