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:
2026-06-10 22:32:26 +07:00
parent 358a98b21b
commit edd91d4d64
7 changed files with 74 additions and 17 deletions
+4
View File
@@ -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'
});
});