forked from mystiq/hydrogen-web
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
1 changed files with 10 additions and 0 deletions
|
@ -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 a new issue