-
I try to use use refresh without success : it('can refresh to its original state', () => {
const user = new User({ id: 1, lastName: 'John Doe' })
user.lastName = 'Johnny Doe'
user.$refresh()
expect(user.$isDirty()).toBeFalsy()
expect(user.lastName,"Refresh not restoring original").toBe('John Doe');
}) Did I misunderstand the role of the refresh function ? |
Beta Was this translation helpful? Give feedback.
Answered by
CodeDredd
Feb 24, 2023
Replies: 1 comment 2 replies
-
I need more details. Can please provide a reproduction please ? 🙏 Thank you! |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
CodeDredd
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I need more details. Can please provide a reproduction please ? 🙏 Thank you!