Fixed a linting issue in previews test