Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions tests/studio-ui-render.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
Loading