I have an object:

```
var object_1 = {
     random_id: 'random_id_1';
     name: name;
     surname: surname;
}

```

and

```
var object_2 = {
     random_id: 'random_id_2';
     name: 'name';
     surname: 'surname';
}

```

how to equal this 2 objects with excluding random\_id

I tried to do it with plugin Chai:

```
expect(object_1).excluding('random_id').to.deep.equal(object_2)

```

but without success.