36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`inline-javascript.less format 1`] = `
|
|
====================================options=====================================
|
|
parsers: ["less"]
|
|
printWidth: 80
|
|
| printWidth
|
|
=====================================input======================================
|
|
// Deprecated feature https://lesscss.org/usage/#less-options-enable-inline-javascript-deprecated-
|
|
|
|
.calcPxMixin() {
|
|
@functions: ~\`(function() {
|
|
const designWidth = 3840
|
|
const actualWidth = 5760
|
|
this.calcPx = function(_) {
|
|
return _ * actualWidth / designWidth + 'px'
|
|
}
|
|
})()\`
|
|
}
|
|
|
|
=====================================output=====================================
|
|
// Deprecated feature https://lesscss.org/usage/#less-options-enable-inline-javascript-deprecated-
|
|
|
|
.calcPxMixin() {
|
|
@functions: ~\`(function() {
|
|
const designWidth = 3840
|
|
const actualWidth = 5760
|
|
this.calcPx = function(_) {
|
|
return _ * actualWidth / designWidth + 'px'
|
|
}
|
|
})()\`;
|
|
}
|
|
|
|
================================================================================
|
|
`;
|