[Pkg-javascript-commits] [node-mime-db] 08/08: update tests and README according with new changes

Leo Iannacone l3on-guest at moszumanska.debian.org
Mon Sep 15 08:17:25 UTC 2014


This is an automated email from the git hooks/post-receive script.

l3on-guest pushed a commit to branch master
in repository node-mime-db.

commit 58c0fa22eed47aaf873fbe8bab71120496a860dc
Author: Leo Iannacone <l3on at ubuntu.com>
Date:   Mon Sep 15 10:17:13 2014 +0200

    update tests and README according with new changes
---
 debian/patches/0001-use-system-mime-types.patch | 47 ++++++++++++++++++++++++-
 1 file changed, 46 insertions(+), 1 deletion(-)

diff --git a/debian/patches/0001-use-system-mime-types.patch b/debian/patches/0001-use-system-mime-types.patch
index ea4030c..7d8b6f3 100644
--- a/debian/patches/0001-use-system-mime-types.patch
+++ b/debian/patches/0001-use-system-mime-types.patch
@@ -1,12 +1,16 @@
 Description: use system's mime-types instead of taking
  them from Internet.
+ Update tests according with new mime types database.
+ Update README according with these changes.
 Author: Leo Iannacone <l3on at ubuntu.com>
 Forwarded: not-needed
 
 ---
+ README.md             |    4 ++--
  scripts/build.js      |   31 +------------------------------
  scripts/extensions.js |   20 ++++----------------
- 2 files changed, 5 insertions(+), 46 deletions(-)
+ test/index.js         |   13 ++++---------
+ 4 files changed, 11 insertions(+), 57 deletions(-)
 
 --- a/scripts/build.js
 +++ b/scripts/build.js
@@ -87,3 +91,44 @@ Forwarded: not-needed
    var json = {}
    // http://en.wikipedia.org/wiki/Internet_media_type#Naming
    /**
+--- a/test/index.js
++++ b/test/index.js
+@@ -21,13 +21,8 @@
+     assert.equal('UTF-8', db['application/javascript'].charset)
+   })
+ 
+-  it('should set audio/x-flac with extension=flac', function () {
+-    assert.equal('flac', db['audio/x-flac'].extensions[0])
+-  })
+-
+-  it('should have guessed application/mathml+xml', function () {
+-    // because it doesn't have a "template"
+-    assert(db['application/mathml+xml'])
++  it('should set audio/flac with extension=flac', function () {
++    assert.equal('flac', db['audio/flac'].extensions[0])
+   })
+ 
+   it('should not have an empty .extensions', function () {
+@@ -39,7 +34,7 @@
+   })
+ 
+   it('should have the default .extension as the first', function () {
+-assert.equal(db['text/plain'].extensions[0], 'txt')
+-assert.equal(db['video/x-matroska'].extensions[0], 'mkv')
++assert.equal(db['text/plain'].extensions[0], 'asc')
++assert.equal(db['video/x-matroska'].extensions[0], 'mpv')
+   })
+ })
+--- a/README.md
++++ b/README.md
+@@ -11,8 +11,8 @@
+ allowing it to remain as unopinionated as possible with an API.
+ It aggregates data from the following sources:
+ 
+-- http://www.iana.org/assignments/media-types/media-types.xhtml
+-- http://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types
++ * /etc/mime.types
++ * /usr/share/node-mime/node.types
+ 
+ ## Usage
+ 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-mime-db.git



More information about the Pkg-javascript-commits mailing list