text: /**
  * @license Apache-2.0
  *
  * Copyright (c) 2018 The Stdlib Authors.
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
  *
  *    http://www.apache.org/licenses/LICENSE-2.0
  *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
  
  'use strict';
  
  // MODULES //
  
  var tape = require( 'tape' );
  var headers = require( './../lib/headers.js' );
  
  
  // FUNCTIONS //
  
  function setup() {
  	return {
  		'useragent': 'beep-boop',
  		'accept': 'application/vnd.github.v3+json',
  		'token': 'abcdef123'
  	};
  }
  
  
  // TESTS //
  
  tape( 'main export is a function', function test( t ) {
  	t.equal( typeof headers, 'function', 'main export is a function' );
  	t.end();
  });
  
  tape( 'the function returns an object', function test( t ) {
  	t.equal( typeof headers( setup() ), 'object', 'returns an object' );
  	t.end();
  });
  
  tape( 'if provided a `useragent` option, the function sets the `User-Agent` header', function test( t ) {
  	var opts = setup();
  	var h = headers( opts );
  	t.equal( h[ 'User-Agent' ], opts.useragent, 'sets the `User-Agent` header' );
  	t.end();
  });
  
  tape( 'if provided an `accept` option, the function sets the `Accept` header', function test( t ) {
  	var opts = setup();
  	var h = headers( opts );
  	t.equal( h[ 'Accept' ], opts.accept, 'sets the `Accept` header' );
  	t.end();
  });
  
  tape( 'if provided a `token` option, the function sets the `Authorization` header', function test( t ) {
  	var opts = setup();
  	var h = headers( opts );
  	t.equal( h[ 'Authorization' ], 'token ' +opts.token, 'sets the `Authorization` header' );
  	t.end();
  });
  
  tape( 'if not provided any relevant header options, the function returns an empty object', function test( t ) {
  	var h = headers( {} );
  	t.deepEqual( h, {}, 'returns an empty object' );
  	t.end();
  });
  