[Pkg-javascript-commits] [node-chalk] 04/07: drop all patches

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Fri Sep 8 13:37:58 UTC 2017


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

praveen pushed a commit to branch master
in repository node-chalk.

commit d6b9186785395acdf73687a2d449f5b89f3ff2f3
Author: Pirate Praveen <praveen at debian.org>
Date:   Fri Sep 8 12:59:35 2017 +0530

    drop all patches
---
 debian/patches/00-remove_windows_tests.diff | 82 -----------------------------
 debian/patches/01-test_enabled.diff         | 22 --------
 debian/patches/series                       |  2 -
 3 files changed, 106 deletions(-)

diff --git a/debian/patches/00-remove_windows_tests.diff b/debian/patches/00-remove_windows_tests.diff
deleted file mode 100644
index 93180c1..0000000
--- a/debian/patches/00-remove_windows_tests.diff
+++ /dev/null
@@ -1,82 +0,0 @@
-Description: Remove build dependency on modules only required for
- testing on Windows.
-Forwarded: not-needed
-Author: Paolo Greppi <paolo.greppi at libpf.com>
-
-Index: node-chalk/test.js
-===================================================================
---- node-chalk.orig/test.js
-+++ node-chalk/test.js
-@@ -1,7 +1,5 @@
- 'use strict';
- var assert = require('assert');
--var requireUncached = require('require-uncached');
--var resolveFrom = require('resolve-from');
- var semver = require('semver');
- var chalk = require('./');
- 
-@@ -63,64 +61,6 @@ describe('chalk', function () {
- 	});
- });
- 
--describe('chalk on windows', function () {
--	var originalEnv;
--	var originalPlatform;
--
--	// in node versions older than 0.12.x process.platform cannot be overridden
--	if (semver.lt(process.version, '0.12.0')) {
--		return;
--	}
--
--	before(function () {
--		originalEnv = process.env;
--		originalPlatform = process.platform;
--	});
--
--	after(function () {
--		process.env = originalEnv;
--		Object.defineProperty(process, 'platform', {value: originalPlatform});
--	});
--
--	beforeEach(function () {
--		process.env = {};
--		Object.defineProperty(process, 'platform', {value: 'win32'});
--		// since chalk internally modifies ansiStyles.blue.open, ansi-styles needs
--		// to be removed from the require cache for require-uncached to work
--		delete require.cache[resolveFrom(__dirname, 'ansi-styles')];
--	});
--
--	it('should replace blue foreground color in cmd.exe', function () {
--		process.env.TERM = 'dumb';
--		var chalkCtx = requireUncached('./');
--		assert.equal(chalkCtx.blue('foo'), '\u001b[94mfoo\u001b[39m');
--	});
--
--	it('shouldn\'t replace blue foreground color in xterm based terminals', function () {
--		process.env.TERM = 'xterm-256color';
--		var chalkCtx = requireUncached('./');
--		assert.equal(chalkCtx.blue('foo'), '\u001b[34mfoo\u001b[39m');
--	});
--
--	it('should not apply dimmed styling on gray strings, see https://github.com/chalk/chalk/issues/58', function () {
--		process.env.TERM = 'dumb';
--		var chalkCtx = requireUncached('./');
--		assert.equal(chalkCtx.gray.dim('foo'), '\u001b[90mfoo\u001b[22m\u001b[39m');
--	});
--
--	it('should apply dimmed styling on xterm compatible terminals', function () {
--		process.env.TERM = 'xterm';
--		var chalkCtx = requireUncached('./');
--		assert.equal(chalkCtx.gray.dim('foo'), '\u001b[90m\u001b[2mfoo\u001b[22m\u001b[39m');
--	});
--
--	it('should apply dimmed styling on strings of other colors', function () {
--		process.env.TERM = 'dumb';
--		var chalkCtx = requireUncached('./');
--		assert.equal(chalkCtx.blue.dim('foo'), '\u001b[94m\u001b[2mfoo\u001b[22m\u001b[39m');
--	});
--});
--
- describe('chalk.enabled', function () {
- 	it('should not output colors when manually disabled', function () {
- 		chalk.enabled = false;
diff --git a/debian/patches/01-test_enabled.diff b/debian/patches/01-test_enabled.diff
deleted file mode 100644
index 100d0ff..0000000
--- a/debian/patches/01-test_enabled.diff
+++ /dev/null
@@ -1,22 +0,0 @@
-Description: Enable chalk tests
- After some investigations in
- https://lists.alioth.debian.org/pipermail/pkg-javascript-devel/2016-November/015662.html
- I discovered that for the build tests to pass, the chalk.enabled
- (https://github.com/chalk/chalk#chalkenabled) flag has to be explicitly
- set to true.
-Forwarded: not-needed
-Author: Paolo Greppi <paolo.greppi at libpf.com>
-
-Index: node-chalk/test.js
-===================================================================
---- node-chalk.orig/test.js
-+++ node-chalk/test.js
-@@ -3,6 +3,8 @@ var assert = require('assert');
- var semver = require('semver');
- var chalk = require('./');
- 
-+chalk.enabled = true;
-+
- describe('chalk', function () {
- 	it('should style string', function () {
- 		assert.equal(chalk.underline('foo'), '\u001b[4mfoo\u001b[24m');
diff --git a/debian/patches/series b/debian/patches/series
deleted file mode 100644
index 6c1b451..0000000
--- a/debian/patches/series
+++ /dev/null
@@ -1,2 +0,0 @@
-00-remove_windows_tests.diff
-01-test_enabled.diff

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



More information about the Pkg-javascript-commits mailing list