diff --git a/.gitattributes b/.gitattributes index a8c10f4..5e65953 100644 --- a/.gitattributes +++ b/.gitattributes @@ -5,3 +5,5 @@ studio/**/*.js text eol=lf studio/**/*.css text eol=lf studio/**/*.html text eol=lf studio/**/*.json text eol=lf +studio/**/*.svelte text eol=lf +studio/**/*.mjs text eol=lf diff --git a/tests/studio-ui-render.test.js b/tests/studio-ui-render.test.js index a9b5f1c..df087cf 100644 --- a/tests/studio-ui-render.test.js +++ b/tests/studio-ui-render.test.js @@ -297,3 +297,8 @@ test('index.html loads only the built bundle and the app reserves the ring befor assert.match(app, /id="project-list"/); assert.match(app, /id="run-detail"/); }); + +test('Studio sources check out with LF on every OS, so source checks and the build match', () => { + const attributes = fs.readFileSync(path.join(__dirname, '..', '.gitattributes'), 'utf8'); + for (const ext of ['svelte', 'js', 'css', 'html', 'json', 'mjs']) assert.match(attributes, new RegExp(`^studio/\\*\\*/\\*\\.${ext} text eol=lf$`, 'm'), ext); +});