Sử dụng antigravity cli để sửa lỗi người dùng public không nhìn thấy tour chia sẻ
This commit is contained in:
@@ -35,6 +35,8 @@ describe('TourController - updateTourCenter', () => {
|
||||
// Trung bình: lat (10+20+30)/3 = 20, lng (20+40+60)/3 = 40
|
||||
expect(Tour.findByIdAndUpdate).toHaveBeenCalledWith(tourId, {
|
||||
location: { lat: 20.0, lng: 40.0 }
|
||||
}, {
|
||||
returnDocument: 'after'
|
||||
});
|
||||
});
|
||||
|
||||
@@ -56,6 +58,8 @@ describe('TourController - updateTourCenter', () => {
|
||||
// Chỉ tính 2 cảnh hợp lệ: lat (10+20)/2 = 15, lng (20+40)/2 = 30
|
||||
expect(Tour.findByIdAndUpdate).toHaveBeenCalledWith(tourId, {
|
||||
location: { lat: 15.0, lng: 30.0 }
|
||||
}, {
|
||||
returnDocument: 'after'
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user