refactor: Remove id column from app config serializer
This commit is contained in:
@@ -1,6 +1,5 @@
|
|||||||
const appConfigSerializer = (appConfig) => {
|
const appConfigSerializer = (appConfig) => {
|
||||||
return {
|
return {
|
||||||
id: appConfig.id,
|
|
||||||
key: appConfig.key,
|
key: appConfig.key,
|
||||||
customConnectionAllowed: appConfig.customConnectionAllowed,
|
customConnectionAllowed: appConfig.customConnectionAllowed,
|
||||||
shared: appConfig.shared,
|
shared: appConfig.shared,
|
||||||
|
@@ -11,7 +11,6 @@ describe('appConfig serializer', () => {
|
|||||||
|
|
||||||
it('should return app config data', async () => {
|
it('should return app config data', async () => {
|
||||||
const expectedPayload = {
|
const expectedPayload = {
|
||||||
id: appConfig.id,
|
|
||||||
key: appConfig.key,
|
key: appConfig.key,
|
||||||
customConnectionAllowed: appConfig.customConnectionAllowed,
|
customConnectionAllowed: appConfig.customConnectionAllowed,
|
||||||
shared: appConfig.shared,
|
shared: appConfig.shared,
|
||||||
@@ -21,6 +20,6 @@ describe('appConfig serializer', () => {
|
|||||||
updatedAt: appConfig.updatedAt.getTime(),
|
updatedAt: appConfig.updatedAt.getTime(),
|
||||||
};
|
};
|
||||||
|
|
||||||
expect(appConfigSerializer(appConfig)).toEqual(expectedPayload);
|
expect(appConfigSerializer(appConfig)).toStrictEqual(expectedPayload);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user