Skip to content

Commit e9bc22d

Browse files
committed
style(tests): format code and improve comments in ProductServiceTest
style(sidebar): adjust indentation for menu items in Sidebar component
1 parent 936de30 commit e9bc22d

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

backend/src/test/java/com/smalltrend/SmallTrendApplicationTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
class SmallTrendApplicationTests {
66

7-
@Test
8-
void contextLoads() {
9-
}
7+
@Test
8+
void contextLoads() {
9+
}
1010

11-
}
11+
}

backend/src/test/java/com/smalltrend/service/products/ProductServiceTest.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,8 @@
3636
import static org.mockito.Mockito.when;
3737

3838
/**
39-
* Test class cho ProductService
40-
* Kiểm tra business logic của sản phẩm
41-
* Mục tiêu: 100% statement coverage + decision coverage
39+
* Test class cho ProductService Kiểm tra business logic của sản phẩm Mục tiêu:
40+
* 100% statement coverage + decision coverage
4241
*/
4342
@ExtendWith(MockitoExtension.class)
4443
class ProductServiceTest {

frontend/src/components/layout/Sidebar.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const Sidebar = ({ collapsed, onToggleSidebar }) => {
5959
{ label: "Kiểm kê kho", path: "/inventory-counts" },
6060
{ label: "Quản lý vị trí", path: "/inventory/locations" },
6161
{ label: "Xử lý hàng hóa", path: "/inventory/disposal" },
62-
{ label: "Danh sách nhà cung cấp", path: "/inventory/suppliers" },
62+
{ label: "Danh sách nhà cung cấp", path: "/inventory/suppliers" },
6363
],
6464
},
6565
{
@@ -69,7 +69,7 @@ const Sidebar = ({ collapsed, onToggleSidebar }) => {
6969
children: [
7070
{ label: "Danh sách sản phẩm", path: "/products" },
7171
{ label: "Thêm sản phẩm", path: "/products/addproduct" },
72-
{ label: "Danh mục & Thương hiệu", path: "/products/categories" },
72+
{ label: "Danh mục & Thương hiệu", path: "/products/categories" },
7373
{ label: "Thiết lập giá", path: "/products/price" },
7474
{ label: "Combo sản phẩm", path: "/products/combo" },
7575
],

0 commit comments

Comments
 (0)