mirror of
https://github.com/penpot/penpot.git
synced 2026-03-14 14:27:11 +00:00
wip
This commit is contained in:
13
common/src/app/common/files/comp_processors.cljc
Normal file
13
common/src/app/common/files/comp_processors.cljc
Normal file
@@ -0,0 +1,13 @@
|
||||
;; This Source Code Form is subject to the terms of the Mozilla Public
|
||||
;; License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
;; file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
;;
|
||||
;; Copyright (c) KALEIDOS INC
|
||||
|
||||
(ns app.common.files.comp-processors
|
||||
(:require
|
||||
[app.common.types.file :as ctf]))
|
||||
|
||||
(defn fix-missing-swap-slots
|
||||
[file]
|
||||
file)
|
||||
20
common/test/common_tests/files/comp_processors_test.cljc
Normal file
20
common/test/common_tests/files/comp_processors_test.cljc
Normal file
@@ -0,0 +1,20 @@
|
||||
;; This Source Code Form is subject to the terms of the Mozilla Public
|
||||
;; License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
;; file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
;;
|
||||
;; Copyright (c) KALEIDOS INC
|
||||
|
||||
(ns common-tests.files.comp-processors-test
|
||||
(:require
|
||||
[app.common.files.comp-processors :as cfcp]
|
||||
;; [app.common.test-helpers.components :as thc]
|
||||
;; [app.common.test-helpers.compositions :as tho]
|
||||
[app.common.test-helpers.files :as thf]
|
||||
;; [app.common.test-helpers.ids-map :as thi]
|
||||
;; [app.common.test-helpers.shapes :as ths]
|
||||
[clojure.test :as t]))
|
||||
|
||||
(t/deftest test-fix-missing-swap-slots
|
||||
(t/testing "empty file should not need any action"
|
||||
(let [file (thf/sample-file :file1)]
|
||||
(t/is (= file (cfcp/fix-missing-swap-slots file))))))
|
||||
Reference in New Issue
Block a user