jenniferemshepherd / dawn

procedurally generated socio-genetic simulation
2 stars 1 forks source link

92 extract listener from cell factory #113

Closed rcvink closed 6 years ago

rcvink commented 6 years ago

Created a new module in ./listeners/birth-cell.js. This has a method which takes in an event and decides whether to call createFromParents on its cellFactory.

Check out the spec lol I had to make 16 mocks to write the tests yaaaay brb killin myself

I'm gonna do more work on rationalising the CellFactory after lunch