Last active
July 24, 2023 20:36
-
-
Save maltebucksch/9b53f39545ede48fab9b9da45665909a 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(`Quickbird Studios Team`, function() { | |
it(`should be an awesome team`, function() { | |
const quickBirdTeamMembers = fetchTeamMembers(); | |
const awesomeTeamMembers = quickBirdTeamMembers.filter(teamMember => | |
teamMember.isPassionate && | |
teamMember.isFriendly && | |
teamMember.isConstantlyImproving | |
); | |
assert.equal(awesomeTeamMembers.length, quickBirdTeamMembers.length); | |
}); | |
}); |
Oh gosh I supposed to see some set of hard questions X_X You, guys, are awesome!
I think fetchTeamMembers is async, we should wait for it to resolve to continue the test.
describe(`Quickbird Studios Team`, function() {
it(`should be an awesome team`, async function() {
const quickBirdTeamMembers = await fetchTeamMembers();
const awesomeTeamMembers = quickBirdTeamMembers.filter(teamMember =>
teamMember.isPassionate &&
teamMember.isFriendly &&
teamMember.isConstantlyImproving
);
assert.equal(awesomeTeamMembers.length, quickBirdTeamMembers.length);
});
});
Great!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Haha, love it