re-implementing tests with async await. tests also check asynchronous behaviour now.

This commit is contained in:
Kevin Jahns
2015-07-18 23:15:20 +02:00
parent ebc628adfc
commit d4ef54358b
7 changed files with 183 additions and 164 deletions

View File

@@ -126,7 +126,7 @@ Y.Memory = (function(){ //eslint-disable-line no-unused-vars
requestTransaction (_makeGen : Function) {
if (!this.transactionInProgress) {
this.transactionInProgress = true;
window.setTimeout(() => {
setTimeout(() => {
var makeGen = _makeGen;
while (makeGen != null) {
var t = new Transaction(this);