test: revert node v16 requirement for tests (#4737)

This commit is contained in:
David Luzar 2022-02-07 12:27:31 +01:00 committed by GitHub
parent 339636caab
commit c3f6d6d344
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ jobs:
- name: Setup Node.js 14.x
uses: actions/setup-node@v2
with:
node-version: 16.x
node-version: 14.x
- name: Install and test
run: |
yarn --frozen-lockfile

View File

@ -86,7 +86,7 @@ export const textWysiwyg = ({
updatedElement: ExcalidrawTextElement,
editable: HTMLTextAreaElement,
) => {
const currentFont = editable.style.fontFamily.replaceAll('"', "");
const currentFont = editable.style.fontFamily.replace(/"/g, "");
if (
getFontFamilyString({ fontFamily: updatedElement.fontFamily }) !==
currentFont