Skip to content

Commit

Permalink
fix: atomic tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hosseinmd committed Jul 3, 2022
1 parent ffdb069 commit f38aa08
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 6 additions & 1 deletion src/stories/src/base/scrollView/scrollView.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ export default {

const children = (
<View style={{ width: 500 }}>
<Text theme="regular" lang="fa" style={{ textAlign: "justify" }}>
<Text
theme="regular"
lang="fa"
style={{ textAlign: "justify" }}
onLayout={() => {}}
>
لورم ایپسوم متن ساختگی با تولید سادگی نامفهوم از صنعت چاپ، و با استفاده از
طراحان گرافیک است، چاپگرها و متون بلکه روزنامه و مجله در ستون و سطرآنچنان
که لازم است، و برای شرایط فعلی تکنولوژی مورد نیاز، و کاربردهای متنوع با
Expand Down
7 changes: 2 additions & 5 deletions src/tests/src/atomicStructure.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,12 +138,9 @@ function recursiveChecker(
});

if (
(components[getIndex(atomicName) - 1] &&
join(componentDir, path.node.source.value).startsWith(
components[getIndex(atomicName) - 1],
)) ||
components[getIndex(atomicName) - 1] &&
join(componentDir, path.node.source.value).startsWith(
components[getIndex(atomicName)],
components[getIndex(atomicName) - 1],
)
) {
isCorrectPosition = true;
Expand Down

0 comments on commit f38aa08

Please sign in to comment.