mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 19:45:05 +01:00
Add failing test
For empty names not un-disambiguating Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
89e256e563
commit
11d411c9a9
@ -143,5 +143,15 @@ export function tests(){
|
|||||||
d.disambiguate(vm1);
|
d.disambiguate(vm1);
|
||||||
assert.strictEqual(vm1.disambiguate, false);
|
assert.strictEqual(vm1.disambiguate, false);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
"Empty names must un-disambiguate": assert => {
|
||||||
|
const [vm1, vm2, d] = createVmAndDisambiguator([["", "a"], ["", "b"]]);
|
||||||
|
d.disambiguate(vm1);
|
||||||
|
d.disambiguate(vm2);
|
||||||
|
vm1.updateName("foo");
|
||||||
|
d.disambiguate(vm1);
|
||||||
|
assert.strictEqual(vm1.disambiguate, false);
|
||||||
|
assert.strictEqual(vm2.disambiguate, false);
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user