1- import * as github from "../lib/converter/plugins/GitHubPlugin " ;
1+ import { Repository } from "../lib/converter/plugins/SourceLinkPlugin " ;
22import { RepositoryType } from "../lib/models" ;
33import { strictEqual as equal } from "assert" ;
44
55describe ( "Repository" , function ( ) {
66 describe ( "constructor" , function ( ) {
77 it ( "defaults to github.com hostname" , function ( ) {
8- const repository = new github . Repository ( "" , "" , [ ] ) ;
8+ const repository = new Repository ( "" , "" , [ ] ) ;
99
1010 equal ( repository . hostname , "github.com" ) ;
1111 equal ( repository . type , RepositoryType . GitHub ) ;
@@ -14,7 +14,7 @@ describe("Repository", function () {
1414 it ( "handles a personal GitHub HTTPS URL" , function ( ) {
1515 const mockRemotes = [ "https://github.com/joebloggs/foobar.git" ] ;
1616
17- const repository = new github . Repository ( "" , "" , mockRemotes ) ;
17+ const repository = new Repository ( "" , "" , mockRemotes ) ;
1818
1919 equal ( repository . hostname , "github.com" ) ;
2020 equal ( repository . user , "joebloggs" ) ;
@@ -25,7 +25,7 @@ describe("Repository", function () {
2525 it ( "handles an enterprise GitHub URL" , function ( ) {
2626 const mockRemotes = [ "[email protected] :joebloggs/foobar.git" ] ; 2727
28- const repository = new github . Repository ( "" , "" , mockRemotes ) ;
28+ const repository = new Repository ( "" , "" , mockRemotes ) ;
2929
3030 equal ( repository . hostname , "github.acme.com" ) ;
3131 equal ( repository . user , "joebloggs" ) ;
@@ -38,7 +38,7 @@ describe("Repository", function () {
3838 "ssh://[email protected] /joebloggs/foobar.git" , 3939 ] ;
4040
41- const repository = new github . Repository ( "" , "" , mockRemotes ) ;
41+ const repository = new Repository ( "" , "" , mockRemotes ) ;
4242
4343 equal ( repository . hostname , "bigcompany.githubprivate.com" ) ;
4444 equal ( repository . user , "joebloggs" ) ;
@@ -51,7 +51,7 @@ describe("Repository", function () {
5151 "https://[email protected] /joebloggs/foobar.git" , 5252 ] ;
5353
54- const repository = new github . Repository ( "" , "" , mockRemotes ) ;
54+ const repository = new Repository ( "" , "" , mockRemotes ) ;
5555
5656 equal ( repository . hostname , "bitbucket.org" ) ;
5757 equal ( repository . user , "joebloggs" ) ;
@@ -62,7 +62,7 @@ describe("Repository", function () {
6262 it ( "handles a Bitbucket SSH URL" , function ( ) {
6363 const mockRemotes = [ "[email protected] :joebloggs/foobar.git" ] ; 6464
65- const repository = new github . Repository ( "" , "" , mockRemotes ) ;
65+ const repository = new Repository ( "" , "" , mockRemotes ) ;
6666
6767 equal ( repository . hostname , "bitbucket.org" ) ;
6868 equal ( repository . user , "joebloggs" ) ;
@@ -78,7 +78,7 @@ describe("Repository", function () {
7878 it ( "returns a GitHub URL" , function ( ) {
7979 const mockRemotes = [ "https://github.com/joebloggs/foobar.git" ] ;
8080
81- const repository = new github . Repository (
81+ const repository = new Repository (
8282 repositoryPath ,
8383 "main" ,
8484 mockRemotes
@@ -96,7 +96,7 @@ describe("Repository", function () {
9696 "https://[email protected] /joebloggs/foobar.git" , 9797 ] ;
9898
99- const repository = new github . Repository (
99+ const repository = new Repository (
100100 repositoryPath ,
101101 "main" ,
102102 mockRemotes
0 commit comments