Skip to content

Commit

Permalink
fix: STRF-10120 getFontsCollection helper hint should be of type styl…
Browse files Browse the repository at this point in the history
…e not font (#224)
  • Loading branch information
rafa-avila-bc authored Oct 21, 2022
1 parent 2e3a02b commit b59c475
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion helpers/lib/fonts.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ const fontProviders = {
globals,
path,
defaultResourceHintState,
resourceHintAllowedTypes.resourceHintFontType
resourceHintAllowedTypes.resourceHintStyleType
);
}
},
Expand Down
2 changes: 1 addition & 1 deletion spec/helpers/getFontsCollection.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe('getFontsCollection', function () {
expect(hints).to.have.length(1);
expect(hints[0].src).to.equals(href);
expect(hints[0].state).to.equals(resourceHintAllowedStates.preloadResourceHintState);
expect(hints[0].type).to.equals(resourceHintAllowedTypes.resourceHintFontType);
expect(hints[0].type).to.equals(resourceHintAllowedTypes.resourceHintStyleType);
done();
});
});
Expand Down

0 comments on commit b59c475

Please sign in to comment.