-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
24bc4c9
commit 68958a0
Showing
6 changed files
with
27 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
global.TextEncoder = require("util").TextEncoder; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 10 additions & 10 deletions
20
test/e2e-tests/fixtures/blocks/vk-blocks__outer__default.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,30 @@ | ||
<!-- wp:vk-blocks/outer {"bgColor":"#8ed1fc","bgImage":"https://www.vektor-inc.co.jp/wp-content/uploads/2020/04/vws_logo_2020_og.png","bgImageTablet":"https://www.vektor-inc.co.jp/wp-content/uploads/2020/08/vk-blocks-logo_og.png","bgImageMobile":"https://www.vektor-inc.co.jp/wp-content/uploads/2020/08/vk-blocks-logo_og.png","upper_level":43,"lower_level":-56,"borderColor":"#000","blockId":"1a85def9-ff66-40a4-a115-aac39b59e05e"} --> | ||
<div class="wp-block-vk-blocks-outer vkb-outer-1a85def9-ff66-40a4-a115-aac39b59e05e vk_outer vk_outer-width-normal vk_outer-paddingLR-none vk_outer-paddingVertical-use vk_outer-bgPosition-normal" style="border:none;border-radius:0px"><style> | ||
<!-- wp:vk-blocks/outer {"bgColor":"#8ed1fc","bgImage":"https://www.vektor-inc.co.jp/wp-content/uploads/2020/04/vws_logo_2020_og.png","bgImageTablet":"https://www.vektor-inc.co.jp/wp-content/uploads/2020/08/vk-blocks-logo_og.png","bgImageMobile":"https://www.vektor-inc.co.jp/wp-content/uploads/2020/08/vk-blocks-logo_og.png","upper_level":43,"lower_level":-56,"borderColor":"#000","blockId":"49d5b682-3de0-462f-9197-946759350655"} --> | ||
<div class="wp-block-vk-blocks-outer vkb-outer-49d5b682-3de0-462f-9197-946759350655 vk_outer vk_outer-width-normal vk_outer-paddingLR-none vk_outer-paddingVertical-use vk_outer-bgPosition-normal" style="border:none;border-radius:0px"><style> | ||
@media screen and (max-width: 575.98px) { | ||
.vkb-outer-1a85def9-ff66-40a4-a115-aac39b59e05e{background-image: url(https://www.vektor-inc.co.jp/wp-content/uploads/2020/08/vk-blocks-logo_og.png); } | ||
.vkb-outer-49d5b682-3de0-462f-9197-946759350655{background-image: url(https://www.vektor-inc.co.jp/wp-content/uploads/2020/08/vk-blocks-logo_og.png); } | ||
} | ||
@media screen and (min-width: 576px) { | ||
.vkb-outer-1a85def9-ff66-40a4-a115-aac39b59e05e{background-image: url(https://www.vektor-inc.co.jp/wp-content/uploads/2020/08/vk-blocks-logo_og.png); } | ||
.vkb-outer-49d5b682-3de0-462f-9197-946759350655{background-image: url(https://www.vektor-inc.co.jp/wp-content/uploads/2020/08/vk-blocks-logo_og.png); } | ||
} | ||
@media screen and (min-width: 992px) { | ||
.vkb-outer-1a85def9-ff66-40a4-a115-aac39b59e05e{background-image: url(https://www.vektor-inc.co.jp/wp-content/uploads/2020/04/vws_logo_2020_og.png); } | ||
.vkb-outer-49d5b682-3de0-462f-9197-946759350655{background-image: url(https://www.vektor-inc.co.jp/wp-content/uploads/2020/04/vws_logo_2020_og.png); } | ||
} | ||
</style><span class="vk_outer-background-area has-background has-background-dim" style="background-color:#8ed1fc;opacity:0.5"></span><div><div class="vk_outer_separator vk_outer_separator-position-upper vk_outer_separator-type-tilt" style="padding-bottom:43px"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="m0,57 L100,100 L0,100 z" strokewidth="0" fill="#fff" class="has-text-color"></path></svg></div><div class="vk_outer_container"></div><div class="vk_outer_separator vk_outer_separator-position-lower vk_outer_separator-type-tilt" style="padding-top:56px"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="m100,44 L0,100 L100,100 z" strokewidth="0" fill="#fff" class="has-text-color"></path></svg></div></div></div><style type="text/css"> | ||
.vk_outer.vkb-outer-1a85def9-ff66-40a4-a115-aac39b59e05e > div > .vk_outer_container{ | ||
</style><span class="vk_outer-background-area has-background has-background-dim" style="background-color:#8ed1fc;opacity:0.5"></span><div><div class="vk_outer_separator vk_outer_separator-position-upper vk_outer_separator-type-tilt" style="padding-bottom:43px"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="m0,57 L100,100 L0,100 z" stroke-width="0" fill="#fff" class="has-text-color"></path></svg></div><div class="vk_outer_container"></div><div class="vk_outer_separator vk_outer_separator-position-lower vk_outer_separator-type-tilt" style="padding-top:56px"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="m100,44 L0,100 L100,100 z" stroke-width="0" fill="#fff" class="has-text-color"></path></svg></div></div></div><style type="text/css"> | ||
.vk_outer.vkb-outer-49d5b682-3de0-462f-9197-946759350655 > div > .vk_outer_container{ | ||
padding-left:0px!important; | ||
padding-right:0px!important; | ||
} | ||
@media (min-width: 576px) { | ||
.vk_outer.vkb-outer-1a85def9-ff66-40a4-a115-aac39b59e05e > div > .vk_outer_container{ | ||
.vk_outer.vkb-outer-49d5b682-3de0-462f-9197-946759350655 > div > .vk_outer_container{ | ||
padding-left:0px!important; | ||
padding-right:0px!important; | ||
} | ||
} | ||
@media (min-width: 992px) { | ||
.vk_outer.vkb-outer-1a85def9-ff66-40a4-a115-aac39b59e05e > div > .vk_outer_container{ | ||
.vk_outer.vkb-outer-49d5b682-3de0-462f-9197-946759350655 > div > .vk_outer_container{ | ||
padding-left:0px!important; | ||
padding-right:0px!important; | ||
} | ||
} | ||
</style> | ||
<!-- /wp:vk-blocks/outer --> | ||
<!-- /wp:vk-blocks/outer --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
module.exports = { | ||
rootDir: '../', | ||
// @vkblocks エイリアスを jestで使う | ||
moduleNameMapper: { | ||
"^@vkblocks/(.+)": "<rootDir>/src/$1" | ||
}, | ||
preset: '@wordpress/jest-preset-default', | ||
transform : { | ||
"^.+\\.js$": "babel-jest", | ||
".+\\.(svg|css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$": "jest-transform-stub" | ||
} | ||
}, | ||
transformIgnorePatterns: [ | ||
"/node_modules/(?!uuid|lib0)/.+\\.js$" | ||
], | ||
setupFilesAfterEnv: ["<rootDir>/jest.setup.js"] | ||
}; |