refactor jasmine post test