refactor: Remove id column from app config serializer

This commit is contained in:
Faruk AYDIN
2024-10-25 11:47:41 +02:00
parent 47510e24d5
commit 7a437660d1
2 changed files with 1 additions and 3 deletions

View File

@@ -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,

View File

@@ -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);
}); });
}); });