城市合伙人县区不做限制
This commit is contained in:
@@ -61,7 +61,7 @@ describe('validatePartnerCityBinding', () => {
|
||||
expect(result.ok).toBe(false);
|
||||
});
|
||||
|
||||
it('rejects overlapping district codes', () => {
|
||||
it('allows overlapping district codes as labels', () => {
|
||||
const result = validatePartnerCityBinding(
|
||||
[
|
||||
{
|
||||
@@ -74,10 +74,7 @@ describe('validatePartnerCityBinding', () => {
|
||||
],
|
||||
{ partnerAccountId: '11', scopeType: 'DISTRICT', districtCodes: ['410105'] },
|
||||
);
|
||||
expect(result.ok).toBe(false);
|
||||
expect(result.message).toContain('区域重合');
|
||||
expect(result.message).toContain('甲公司');
|
||||
expect(result.occupiedCodes).toEqual(['410105']);
|
||||
expect(result.ok).toBe(true);
|
||||
});
|
||||
|
||||
it('allows valid district binding', () => {
|
||||
|
||||
Reference in New Issue
Block a user