Skip to content

Commit ab58b61

Browse files
committed
frontend: rename test files
1 parent b9556a5 commit ab58b61

File tree

6 files changed

+8
-1
lines changed

6 files changed

+8
-1
lines changed

frontend/src/components/device/__tests__/DeleteDeviceModal.simple.test.tsx renamed to frontend/src/components/device/__tests__/DeleteDeviceModal.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const mockDevice: StateDevice = {
1212
port: 8080,
1313
valid: true,
1414
last_state_change: 1640995200,
15+
firmware_version: '1.0.0',
1516
};
1617

1718
const defaultProps = {

frontend/src/components/device/__tests__/DeviceCard.simple.test.tsx renamed to frontend/src/components/device/__tests__/DeviceCard.test.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const mockDevice: StateDevice = {
1212
port: 8080,
1313
valid: true,
1414
last_state_change: 1640995200,
15+
firmware_version: '1.0.0',
1516
};
1617

1718
const defaultProps = {
@@ -128,7 +129,7 @@ describe('DeviceCard', () => {
128129
expect(container2.firstChild).toBeTruthy();
129130
});
130131

131-
it('renders with minimal device data', () => {
132+
it('handles minimal device configuration', () => {
132133
const minimalDevice: StateDevice = {
133134
id: '1',
134135
uid: 1,
@@ -138,6 +139,7 @@ describe('DeviceCard', () => {
138139
port: 80,
139140
valid: true,
140141
last_state_change: null,
142+
firmware_version: '1.0.0',
141143
};
142144

143145
const { container } = render(<DeviceCard {...defaultProps} device={minimalDevice} />);

frontend/src/components/device/__tests__/DeviceMobileView.simple.test.tsx renamed to frontend/src/components/device/__tests__/DeviceMobileView.test.tsx

File renamed without changes.

frontend/src/components/device/__tests__/DeviceTable.simple.test.tsx renamed to frontend/src/components/device/__tests__/DeviceTable.test.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const mockDevices: StateDevice[] = [
1313
port: 8080,
1414
valid: true,
1515
last_state_change: 1640995200,
16+
firmware_version: '1.0.0',
1617
},
1718
{
1819
id: '2',
@@ -23,6 +24,7 @@ const mockDevices: StateDevice[] = [
2324
port: 8081,
2425
valid: false,
2526
last_state_change: null,
27+
firmware_version: '1.0.0',
2628
},
2729
];
2830

@@ -98,6 +100,7 @@ describe('DeviceTable', () => {
98100
port: 0,
99101
valid: false,
100102
last_state_change: null,
103+
firmware_version: '',
101104
}
102105
];
103106

frontend/src/components/device/__tests__/DeviceTableRow.simple.test.tsx renamed to frontend/src/components/device/__tests__/DeviceTableRow.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const mockDevice: StateDevice = {
1212
port: 8080,
1313
valid: true,
1414
last_state_change: 1640995200,
15+
firmware_version: '1.0.0',
1516
};
1617

1718
const defaultProps = {

frontend/src/components/device/__tests__/EditNoteModal.simple.test.tsx renamed to frontend/src/components/device/__tests__/EditNoteModal.test.tsx

File renamed without changes.

0 commit comments

Comments
 (0)