summaryrefslogtreecommitdiffstats
path: root/node_modules/buffer/test/base64.js
diff options
context:
space:
mode:
authorGravatar Piotr Russ <mail@pruss.it> 2020-11-18 23:26:45 +0100
committerGravatar Piotr Russ <mail@pruss.it> 2020-11-18 23:26:45 +0100
commit81ddf9b700bc48a1f8e472209f080f9c1d9a9b09 (patch)
tree8b959d50c5a614cbf9fcb346ed556140374d4b6d /node_modules/buffer/test/base64.js
parent1870f3fdf43707a15fda0f609a021f516f45eb63 (diff)
downloadwebsite_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.gz
website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.bz2
website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.zip
rm node_modules
Diffstat (limited to 'node_modules/buffer/test/base64.js')
-rw-r--r--node_modules/buffer/test/base64.js47
1 files changed, 0 insertions, 47 deletions
diff --git a/node_modules/buffer/test/base64.js b/node_modules/buffer/test/base64.js
deleted file mode 100644
index e4ecc56..0000000
--- a/node_modules/buffer/test/base64.js
+++ /dev/null
@@ -1,47 +0,0 @@
-if (process.env.OBJECT_IMPL) global.TYPED_ARRAY_SUPPORT = false
-var B = require('../').Buffer
-var test = require('tape')
-
-test('base64: ignore whitespace', function (t) {
- var text = '\n YW9ldQ== '
- var buf = new B(text, 'base64')
- t.equal(buf.toString(), 'aoeu')
- t.end()
-})
-
-test('base64: strings without padding', function (t) {
- t.equal((new B('YW9ldQ', 'base64').toString()), 'aoeu')
- t.end()
-})
-
-test('base64: newline in utf8 -- should not be an issue', function (t) {
- t.equal(
- new B('LS0tCnRpdGxlOiBUaHJlZSBkYXNoZXMgbWFya3MgdGhlIHNwb3QKdGFnczoK', 'base64').toString('utf8'),
- '---\ntitle: Three dashes marks the spot\ntags:\n'
- )
- t.end()
-})
-
-test('base64: newline in base64 -- should get stripped', function (t) {
- t.equal(
- new B('LS0tCnRpdGxlOiBUaHJlZSBkYXNoZXMgbWFya3MgdGhlIHNwb3QKdGFnczoK\nICAtIHlhbWwKICAtIGZyb250LW1hdHRlcgogIC0gZGFzaGVzCmV4cGFuZWQt', 'base64').toString('utf8'),
- '---\ntitle: Three dashes marks the spot\ntags:\n - yaml\n - front-matter\n - dashes\nexpaned-'
- )
- t.end()
-})
-
-test('base64: tab characters in base64 - should get stripped', function (t) {
- t.equal(
- new B('LS0tCnRpdGxlOiBUaHJlZSBkYXNoZXMgbWFya3MgdGhlIHNwb3QKdGFnczoK\t\t\t\tICAtIHlhbWwKICAtIGZyb250LW1hdHRlcgogIC0gZGFzaGVzCmV4cGFuZWQt', 'base64').toString('utf8'),
- '---\ntitle: Three dashes marks the spot\ntags:\n - yaml\n - front-matter\n - dashes\nexpaned-'
- )
- t.end()
-})
-
-test('base64: invalid non-alphanumeric characters -- should be stripped', function (t) {
- t.equal(
- new B('!"#$%&\'()*,.:;<=>?@[\\]^`{|}~', 'base64').toString('utf8'),
- ''
- )
- t.end()
-})