Skip to content

Commit

Permalink
fix: del console.log
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaran01 committed Mar 13, 2024
1 parent 063f690 commit cd6aa59
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 20 deletions.
6 changes: 3 additions & 3 deletions 01-material/promise_all_race/__test__/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ const p2 = new Promise((resolve, reject) => {
it('Promise.all全部返回成功测试', (done) => {
Promise.all([p1, p2, 3, 4, 5]).then(data => {
console.log('resolve: ', data);
expect(data).toEqual([ '1', '2', 3, 4, 5 ]);
expect(data).toEqual(['1', '2', 3, 4, 5]);
done();
}, err => {
console.log('reject: ', err);
// console.log('reject: ', err);
});
});

Expand All @@ -30,7 +30,7 @@ const p3 = new Promise((resolve, reject) => {

it('Promise.all其中一个返回失败测试', (done) => {
Promise.all([p1, p2, p3, 3, 4]).then(data => {
console.log('resolve:', data);
// console.log('resolve:', data);
}, err => {
expect(err).toBe('fail');
done();
Expand Down
17 changes: 0 additions & 17 deletions test.js

This file was deleted.

0 comments on commit cd6aa59

Please sign in to comment.