[FIX] owl: add prettier to devDependencies

also, run prettier on codebase

closes #498
This commit is contained in:
Géry Debongnie
2019-11-26 22:35:11 +01:00
committed by aab-odoo
parent a3f2d07b40
commit 8fb35ed969
7 changed files with 57 additions and 12 deletions
+10 -2
View File
@@ -293,7 +293,12 @@ describe("connecting a component to store", () => {
});
test("useStore can use props", async () => {
const state = { todos: [{ id: 1, text: "jupiler" }, { id: 2, text: "chimay" }] };
const state = {
todos: [
{ id: 1, text: "jupiler" },
{ id: 2, text: "chimay" }
]
};
const store = new Store({ state, actions: {} });
class TodoItem extends Component<any, any> {
@@ -360,7 +365,10 @@ describe("connecting a component to store", () => {
test("can call useGetters to receive store getters", async () => {
const state = {
importantID: 1,
todos: [{ id: 1, text: "jupiler" }, { id: 2, text: "bertinchamps" }]
todos: [
{ id: 1, text: "jupiler" },
{ id: 2, text: "bertinchamps" }
]
};
const getters = {
importantTodoText({ state }) {