@@ -30,9 +30,9 @@ function Bankai (entry, opts) {
3030 this . local = localization ( opts . language || 'en-US' )
3131 this . log = pino ( opts . logStream || process . stdout )
3232
33- assert . equal ( typeof entry , 'string' , 'bankai: entry should be type string' )
33+ assert . strictEqual ( typeof entry , 'string' , 'bankai: entry should be type string' )
3434 assert . ok ( path . isAbsolute ( entry ) , 'bankai: entry should be an absolute path. Received: ' + entry )
35- assert . equal ( typeof opts , 'object' , 'bankai: opts should be type object' )
35+ assert . strictEqual ( typeof opts , 'object' , 'bankai: opts should be type object' )
3636
3737 var self = this
3838 var methods = [
@@ -142,8 +142,8 @@ function Bankai (entry, opts) {
142142Bankai . prototype = Object . create ( Emitter . prototype )
143143
144144Bankai . prototype . scripts = function ( filename , cb ) {
145- assert . equal ( typeof filename , 'string' )
146- assert . equal ( typeof cb , 'function' )
145+ assert . strictEqual ( typeof filename , 'string' )
146+ assert . strictEqual ( typeof cb , 'function' )
147147 var stepName = 'scripts'
148148 var edgeName = filename . split ( '.' ) [ 0 ]
149149 var self = this
@@ -155,8 +155,8 @@ Bankai.prototype.scripts = function (filename, cb) {
155155}
156156
157157Bankai . prototype . styles = function ( filename , cb ) {
158- assert . equal ( typeof filename , 'string' )
159- assert . equal ( typeof cb , 'function' )
158+ assert . strictEqual ( typeof filename , 'string' )
159+ assert . strictEqual ( typeof cb , 'function' )
160160 var stepName = 'styles'
161161 var edgeName = filename . split ( '.' ) [ 0 ]
162162 var self = this
@@ -168,8 +168,8 @@ Bankai.prototype.styles = function (filename, cb) {
168168}
169169
170170Bankai . prototype . documents = function ( url , cb ) {
171- assert . equal ( typeof url , 'string' )
172- assert . equal ( typeof cb , 'function' )
171+ assert . strictEqual ( typeof url , 'string' )
172+ assert . strictEqual ( typeof cb , 'function' )
173173
174174 var filename = url . split ( '?' ) [ 0 ]
175175
@@ -185,7 +185,7 @@ Bankai.prototype.documents = function (url, cb) {
185185}
186186
187187Bankai . prototype . manifest = function ( cb ) {
188- assert . equal ( typeof cb , 'function' )
188+ assert . strictEqual ( typeof cb , 'function' )
189189 var stepName = 'manifest'
190190 var edgeName = 'bundle'
191191 var self = this
@@ -197,7 +197,7 @@ Bankai.prototype.manifest = function (cb) {
197197}
198198
199199Bankai . prototype . serviceWorker = function ( cb ) {
200- assert . equal ( typeof cb , 'function' )
200+ assert . strictEqual ( typeof cb , 'function' )
201201 var stepName = 'service-worker'
202202 var edgeName = 'bundle'
203203 var self = this
@@ -209,8 +209,8 @@ Bankai.prototype.serviceWorker = function (cb) {
209209}
210210
211211Bankai . prototype . assets = function ( filename , cb ) {
212- assert . equal ( typeof filename , 'string' )
213- assert . equal ( typeof cb , 'function' )
212+ assert . strictEqual ( typeof filename , 'string' )
213+ assert . strictEqual ( typeof cb , 'function' )
214214 var stepName = 'assets'
215215 var self = this
216216 this . queue [ stepName ] . add ( function ( ) {
@@ -222,9 +222,9 @@ Bankai.prototype.assets = function (filename, cb) {
222222}
223223
224224Bankai . prototype . sourceMaps = function ( stepName , edgeName , cb ) {
225- assert . equal ( typeof stepName , 'string' )
226- assert . equal ( typeof edgeName , 'string' )
227- assert . equal ( typeof cb , 'function' )
225+ assert . strictEqual ( typeof stepName , 'string' )
226+ assert . strictEqual ( typeof edgeName , 'string' )
227+ assert . strictEqual ( typeof cb , 'function' )
228228 edgeName = / \. m a p $ / . test ( edgeName ) ? edgeName : edgeName + '.map'
229229 var self = this
230230 var data = self . graph . data [ stepName ] [ edgeName ]
0 commit comments