-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Rollup #24
feat: Rollup #24
Conversation
This smells ok to me... |
babel({ | ||
babelrc: false, | ||
exclude: 'node_modules/**', | ||
presets: [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This may need es3
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added
scripts/test.rollup.config.js
Outdated
babelrc: false, | ||
exclude: 'node_modules/**', | ||
presets: [ | ||
['es2015', { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only tests, but maybe es3 for consistency
scripts/umd.rollup.config.js
Outdated
babelrc: false, | ||
exclude: 'node_modules/**', | ||
presets: [ | ||
['es2015', { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This may need es3
test/m3u8.test.js
Outdated
@@ -68,14 +68,14 @@ QUnit.test('stops sending events after deregistering', function() { | |||
this.lineStream.on('data', temporary); | |||
this.lineStream.on('data', permanent); | |||
this.lineStream.push('line one\n'); | |||
QUnit.strictEqual(temporaryLines.length, | |||
assert.strictEqual(temporaryLines.length, | |||
permanentLines.length, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: indentation
test/m3u8.test.js
Outdated
QUnit.strictEqual(element.text, | ||
assert.ok(element, 'an event was triggered'); | ||
assert.strictEqual(element.type, 'comment', 'the type is comment'); | ||
assert.strictEqual(element.text, | ||
manifest.slice(1, manifest.length - 1), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: indentation
test/m3u8.test.js
Outdated
QUnit.strictEqual(element.tagType, 'key', 'parsed the tag type'); | ||
QUnit.strictEqual(element.attributes.URI, | ||
assert.strictEqual(element.tagType, 'key', 'parsed the tag type'); | ||
assert.strictEqual(element.attributes.URI, | ||
'https://example.com/key', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: indentation
test/m3u8.test.js
Outdated
'https://example.com/key', | ||
'inferred a colon after the tag type'); | ||
|
||
element = null; | ||
manifest = '#EXT-X-KEY: URI = "https://example.com/key",METHOD=AES-128\n'; | ||
this.lineStream.push(manifest); | ||
QUnit.strictEqual(element.attributes.URI, | ||
assert.strictEqual(element.attributes.URI, | ||
'https://example.com/key', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: indentation
test/m3u8.test.js
Outdated
@@ -849,12 +849,12 @@ QUnit.test('parses characteristics attribute', function() { | |||
|
|||
parser.push(manifest); | |||
|
|||
QUnit.equal(parser.manifest.mediaGroups.SUBTITLES.subs.test.characteristics, | |||
assert.equal(parser.manifest.mediaGroups.SUBTITLES.subs.test.characteristics, | |||
'char', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: indentation
test/m3u8.test.js
Outdated
@@ -866,21 +866,21 @@ QUnit.test('parses FORCED attribute', function() { | |||
|
|||
parser.push(manifest); | |||
|
|||
QUnit.ok(parser.manifest.mediaGroups.SUBTITLES.subs.test.forced, | |||
assert.ok(parser.manifest.mediaGroups.SUBTITLES.subs.test.forced, | |||
'parsed FORCED attribute'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: indentation
test/m3u8.test.js
Outdated
let key; | ||
|
||
for (key in testDataManifests) { | ||
if (testDataExpected[key]) { | ||
const parser = new Parser(); | ||
|
||
parser.push(testDataManifests[key]); | ||
QUnit.deepEqual(parser.manifest, | ||
assert.deepEqual(parser.manifest, | ||
testDataExpected[key], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor: indentation
No description provided.