mirror of
https://github.com/HeyPuter/puter.git
synced 2026-11-07 06:23:05 +00:00
test(push): neutral sample token name
This commit is contained in:
1 parent
6b628073c0
commit
53bf7e9303
1 file changed
+2
-2
@@ -89,13 +89,13 @@ describe('push device routes over HTTP', () => {
|
||||
const user = await freshUser(env);
|
||||
const res = await call(env, 'POST', '/push/devices', user.token, {
|
||||
platform: 'android',
|
||||
token: 'fcm-token-register',
|
||||
token: 'device-token-register',
|
||||
label: ' Pixel ',
|
||||
});
|
||||
|
||||
expect(res.status).toBe(200);
|
||||
const text = await res.text();
|
||||
expect(text).not.toContain('fcm-token-register');
|
||||
expect(text).not.toContain('device-token-register');
|
||||
expect(text).not.toContain('token_hash');
|
||||
const { device } = JSON.parse(text) as DeviceBody;
|
||||
expect(Object.keys(device).sort()).toEqual(
|
||||
|
||||
Reference in new issue
Block a user