diff --git a/docs/package.json b/docs/package.json
index 78d285baf..2d63de956 100644
--- a/docs/package.json
+++ b/docs/package.json
@@ -15,7 +15,7 @@
"@segment/consent-manager": "^5.1.0",
"@types/react-github-button": "^0.1.0",
"@types/react-syntax-highlighter": "^13.5.0",
- "evergreen-ui": "7.1.7",
+ "evergreen-ui": "7.1.9",
"lz-string": "^1.4.4",
"next": "latest",
"next-mdx-remote": "^2.1.3",
diff --git a/docs/yarn.lock b/docs/yarn.lock
index d910bfe65..a65e896f8 100644
--- a/docs/yarn.lock
+++ b/docs/yarn.lock
@@ -2342,10 +2342,10 @@ esutils@^2.0.2:
resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64"
integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==
-evergreen-ui@7.1.7:
- version "7.1.7"
- resolved "https://registry.yarnpkg.com/evergreen-ui/-/evergreen-ui-7.1.7.tgz#81d4b70b86af9d96034ebe7674453cde8525037c"
- integrity sha512-rSo36pmlWmgVRTCmhC34V+6FeK6KV8/cMptvhPz1p8Tt9vAuov9mOc/KQJ0arAEYuplu2H4DV6CgtBHX6vk+KQ==
+evergreen-ui@7.1.9:
+ version "7.1.9"
+ resolved "https://registry.yarnpkg.com/evergreen-ui/-/evergreen-ui-7.1.9.tgz#1d967fa62098c0bf5801d94260a725551bcc964b"
+ integrity sha512-/2ltUobNMDRfjteUwG6Xbb2N27DgaNCq4gOipPcmU6Z1w6xL3NLTGLKW28hqAcwvxHADr4ExkXMOP8Uu/szefg==
dependencies:
"@babel/runtime" "^7.1.2"
"@segment/react-tiny-virtual-list" "^2.2.1"
@@ -2363,7 +2363,7 @@ evergreen-ui@7.1.7:
prop-types "^15.6.2"
react-fast-compare "^3.2.0"
react-transition-group "^4.4.1"
- ui-box "^5.4.0"
+ ui-box "^5.4.1"
extend-shallow@^2.0.1:
version "2.0.1"
@@ -4331,10 +4331,10 @@ typescript@4.5.5:
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.5.5.tgz#d8c953832d28924a9e3d37c73d729c846c5896f3"
integrity sha512-TCTIul70LyWe6IJWT8QSYeA54WQe8EjQFU4wY52Fasj5UKx88LNYKCgBEHcOMOrFF1rKGbD8v/xcNWVUq9SymA==
-ui-box@^5.4.0:
- version "5.4.0"
- resolved "https://registry.yarnpkg.com/ui-box/-/ui-box-5.4.0.tgz#707c764fdf4be79cf2f50f356ca9583a491164ee"
- integrity sha512-HuiJKUIOGW/I1VF7EgHl5/3OwywPdV5fwzsDOWfCGS/PORmXOyGetL3gJo9EQJZZZCkui9xf3a/UQhawA88yeQ==
+ui-box@^5.4.1:
+ version "5.4.1"
+ resolved "https://registry.yarnpkg.com/ui-box/-/ui-box-5.4.1.tgz#34f497a143783a3513e850bd58379ac583e3f2fb"
+ integrity sha512-5p+b6kSh1q/bptvLANuAusyB/3fGIvnw8w6rSZNPHckQ8UdPfjIK4DvinmMXRKgdniOba22h8ypVqtkJ9zK/iQ==
dependencies:
"@emotion/hash" "^0.7.1"
inline-style-prefixer "^5.0.4"
diff --git a/package.json b/package.json
index 588f4a635..53ebe2560 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "evergreen-ui",
- "version": "7.1.7",
+ "version": "7.1.9",
"description": "🌲 React UI Kit by Segment 🌲",
"contributors": [
"Jeroen Ransijn (https://jssr.design/)",
@@ -53,8 +53,8 @@
"prepublishOnly": "rm -rf esm commonjs umd types && yarn build",
"release": "np",
"size": "size-limit",
- "storybook": "start-storybook -p 6006",
"test": "yarn lint && yarn tsd && yarn jest",
+ "test:coverage": "yarn jest --coverage",
"test:watch": "yarn jest --watch",
"typecheck": "tsc --noEmit",
"update-docs": "cd docs && yarn add evergreen-ui@latest --exact && git add package.json yarn.lock && git show-branch --no-name HEAD | grep -E 'v[0-9]+.[0-9]+.[0-9]+' && git commit --amend --no-edit || git commit -m \"Updated doc site evergreen version\""
diff --git a/src/constants/src/MimeType.js b/src/constants/src/MimeType.js
index 707f28874..0c0109a98 100644
--- a/src/constants/src/MimeType.js
+++ b/src/constants/src/MimeType.js
@@ -15,6 +15,7 @@ const MimeType = {
mp3: 'audio/mpeg',
mp4: 'video/mp4',
mpeg: 'video/mpeg',
+ ogg: 'audio/ogg',
pdf: 'application/pdf',
png: 'image/png',
ppt: 'application/vnd.ms-powerpoint',
diff --git a/src/spinner/__tests__/Spinner.test.js b/src/spinner/__tests__/Spinner.test.js
new file mode 100644
index 000000000..cd12d4198
--- /dev/null
+++ b/src/spinner/__tests__/Spinner.test.js
@@ -0,0 +1,31 @@
+import React from 'react'
+import { render, screen, act } from '@testing-library/react'
+import Spinner from '../src/Spinner'
+
+describe('Spinner', () => {
+ jest.useFakeTimers()
+ jest.spyOn(global, 'setTimeout')
+
+ it('should not crash when rendering', () => {
+ expect(() => {
+ render()
+ }).not.toThrowError()
+ })
+
+ it('should render', () => {
+ render()
+ expect(screen.getByTestId('Spinner')).not.toBeNull()
+ })
+
+ it('should render after delay time', () => {
+ render()
+
+ act(() => {
+ jest.advanceTimersByTime(300)
+ })
+
+ expect(setTimeout).toHaveBeenCalledTimes(1)
+ expect(setTimeout).toHaveBeenLastCalledWith(expect.any(Function), 300)
+ expect(screen.getByTestId('Spinner-delay')).not.toBeNull()
+ })
+})