aboutsummaryrefslogtreecommitdiff
path: root/packages/webapi/test/base64.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/webapi/test/base64.js')
-rw-r--r--packages/webapi/test/base64.js29
1 files changed, 0 insertions, 29 deletions
diff --git a/packages/webapi/test/base64.js b/packages/webapi/test/base64.js
deleted file mode 100644
index 8881784dc..000000000
--- a/packages/webapi/test/base64.js
+++ /dev/null
@@ -1,29 +0,0 @@
-import { expect } from 'chai'
-import { polyfill } from '../mod.js'
-
-describe('Base64', () => {
- const target = {}
-
- before(() => polyfill(target))
-
- it('Supports Base64 Methods', () => {
- expect(target).to.have.property('atob').that.is.a('function')
- expect(target).to.have.property('btoa').that.is.a('function')
- })
-
- it('Supports atob(data)', () => {
- const a = 'SGVsbG8sIHdvcmxk'
- const b = target.atob(a)
-
- expect(a).to.equal('SGVsbG8sIHdvcmxk')
- expect(b).to.equal('Hello, world')
- })
-
- it('Supports btoa(data)', () => {
- const b = 'Hello, world'
- const a = target.btoa(b)
-
- expect(a).to.equal('SGVsbG8sIHdvcmxk')
- expect(b).to.equal('Hello, world')
- })
-})