FEATURE: new site setting 'code formatting style'

This commit is contained in:
Arpit Jalan
2016-06-27 00:00:45 +05:30
parent 800081f606
commit 83309752ae
5 changed files with 26 additions and 12 deletions

View File

@ -257,6 +257,7 @@ testCase('link modal (link with description)', function(assert) {
componentTest('advanced code', {
template: '{{d-editor value=value}}',
setup() {
this.siteSettings.code_formatting_style = '4-spaces-indent';
this.set('value',
`function xyz(x, y, z) {
if (y === z) {
@ -286,6 +287,7 @@ componentTest('advanced code', {
componentTest('code button', {
template: '{{d-editor value=value}}',
setup() {
this.siteSettings.code_formatting_style = '4-spaces-indent';
this.set('value', "first line\n\nsecond line\n\nthird line");
},