mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-02 08:13:37 +01:00
Use protopiler for protocol buffers
Co-authored-by: Jamie Kyle <jamie@signal.org>
This commit is contained in:
@@ -182,27 +182,6 @@ describe('cleanDataForIpc', () => {
|
||||
]);
|
||||
});
|
||||
|
||||
it('calls `toNumber` when available', () => {
|
||||
assert.deepEqual(
|
||||
cleanDataForIpc([
|
||||
{
|
||||
toNumber() {
|
||||
return 5;
|
||||
},
|
||||
},
|
||||
{
|
||||
toNumber() {
|
||||
return Symbol('bogus');
|
||||
},
|
||||
},
|
||||
]),
|
||||
{
|
||||
cleaned: [5, undefined],
|
||||
pathsChanged: ['root.1'],
|
||||
}
|
||||
);
|
||||
});
|
||||
|
||||
it('deeply cleans objects with a `null` prototype', () => {
|
||||
const value = Object.assign(Object.create(null), {
|
||||
'key 1': 'value',
|
||||
|
||||
Reference in New Issue
Block a user