test: extract defer helper (#24019)

This commit is contained in:
Jeremy Rose 2020-06-11 11:35:50 -07:00 committed by GitHub
parent c66282a460
commit 7c7ea141f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 5 deletions

View file

@ -19,7 +19,7 @@ export async function runCleanupFunctions () {
}
export function defer (f: CleanupFunction) {
cleanupFunctions.push(f);
cleanupFunctions.unshift(f);
}
class RemoteControlApp {