Last active
April 29, 2019 23:36
-
-
Save taras/5d2db2ae1e9a22cc7279dd05bd584d44 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
describe("composed microstates", () => { | |
let person: Person; | |
class Person { | |
name: StringType = child(StringType); | |
} | |
beforeEach(() => { | |
person = create(Person); | |
}); | |
it('has person be of Person type', () => { | |
expectType<Person>(person); | |
}); | |
describe("result of a transition", () => { | |
beforeEach(() => { | |
person = person.name.set('Taras'); | |
}); | |
it('is of Person type', () => { | |
expectType<Person>(person); | |
}) | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment