-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
export cr transclude module name (#7)
* add expo * Update index.js * Create declare-cr-transclude-module_test.js * feat(all): export module name constant
Showing
13 changed files
with
195 additions
and
151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,98 +1,101 @@ | ||
TN: | ||
SF:src/cr-transclude.directive.js | ||
FN:11,(anonymous_0) | ||
FN:13,crTranscludeCompile | ||
FN:18,crTranscludePostLink | ||
FN:28,useFallbackContent | ||
FN:31,(anonymous_4) | ||
FN:36,updateScope | ||
FN:44,notWhitespace | ||
FN:55,transcludeCloneAttachFn | ||
FN:90,(anonymous_8) | ||
FNF:9 | ||
FNH:9 | ||
FNDA:5,(anonymous_0) | ||
FN:8,(anonymous_0) | ||
FN:10,(anonymous_1) | ||
FN:12,crTranscludeCompile | ||
FN:17,crTranscludePostLink | ||
FN:27,useFallbackContent | ||
FN:30,(anonymous_5) | ||
FN:35,updateScope | ||
FN:43,notWhitespace | ||
FN:54,transcludeCloneAttachFn | ||
FN:89,(anonymous_9) | ||
FNF:10 | ||
FNH:10 | ||
FNDA:3,(anonymous_0) | ||
FNDA:5,(anonymous_1) | ||
FNDA:9,crTranscludeCompile | ||
FNDA:12,crTranscludePostLink | ||
FNDA:2,useFallbackContent | ||
FNDA:2,(anonymous_4) | ||
FNDA:2,(anonymous_5) | ||
FNDA:24,updateScope | ||
FNDA:10,notWhitespace | ||
FNDA:10,transcludeCloneAttachFn | ||
FNDA:14,(anonymous_8) | ||
DA:7,1 | ||
DA:9,1 | ||
DA:11,5 | ||
FNDA:14,(anonymous_9) | ||
DA:6,2 | ||
DA:8,3 | ||
DA:10,5 | ||
DA:14,9 | ||
DA:15,9 | ||
DA:16,9 | ||
DA:18,9 | ||
DA:17,9 | ||
DA:24,12 | ||
DA:25,12 | ||
DA:26,12 | ||
DA:30,2 | ||
DA:31,2 | ||
DA:32,2 | ||
DA:37,24 | ||
DA:38,16 | ||
DA:41,8 | ||
DA:45,10 | ||
DA:36,24 | ||
DA:37,16 | ||
DA:40,8 | ||
DA:44,10 | ||
DA:45,16 | ||
DA:46,16 | ||
DA:47,16 | ||
DA:48,10 | ||
DA:52,0 | ||
DA:47,10 | ||
DA:51,0 | ||
DA:55,10 | ||
DA:56,10 | ||
DA:57,10 | ||
DA:58,10 | ||
DA:59,10 | ||
DA:61,0 | ||
DA:67,0 | ||
DA:71,12 | ||
DA:72,0 | ||
DA:84,12 | ||
DA:86,6 | ||
DA:88,12 | ||
DA:90,12 | ||
DA:60,0 | ||
DA:66,0 | ||
DA:70,12 | ||
DA:71,0 | ||
DA:83,12 | ||
DA:85,6 | ||
DA:87,12 | ||
DA:89,12 | ||
DA:90,14 | ||
DA:91,14 | ||
DA:92,14 | ||
DA:99,12 | ||
DA:105,12 | ||
DA:106,2 | ||
DA:98,12 | ||
DA:104,12 | ||
DA:105,2 | ||
LF:35 | ||
LH:31 | ||
BRDA:37,0,0,16 | ||
BRDA:37,0,1,8 | ||
BRDA:37,1,0,24 | ||
BRDA:37,1,1,22 | ||
BRDA:47,2,0,10 | ||
BRDA:47,2,1,6 | ||
BRDA:47,3,0,16 | ||
BRDA:47,3,1,6 | ||
BRDA:56,4,0,10 | ||
BRDA:56,4,1,0 | ||
BRDA:56,5,0,10 | ||
BRDA:56,5,1,10 | ||
BRDA:71,6,0,0 | ||
BRDA:71,6,1,12 | ||
BRDA:84,7,0,6 | ||
BRDA:84,7,1,6 | ||
BRDA:88,8,0,12 | ||
BRDA:88,8,1,6 | ||
BRDA:105,9,0,2 | ||
BRDA:105,9,1,10 | ||
BRDA:105,10,0,12 | ||
BRDA:105,10,1,6 | ||
BRDA:36,0,0,16 | ||
BRDA:36,0,1,8 | ||
BRDA:36,1,0,24 | ||
BRDA:36,1,1,22 | ||
BRDA:46,2,0,10 | ||
BRDA:46,2,1,6 | ||
BRDA:46,3,0,16 | ||
BRDA:46,3,1,6 | ||
BRDA:55,4,0,10 | ||
BRDA:55,4,1,0 | ||
BRDA:55,5,0,10 | ||
BRDA:55,5,1,10 | ||
BRDA:70,6,0,0 | ||
BRDA:70,6,1,12 | ||
BRDA:83,7,0,6 | ||
BRDA:83,7,1,6 | ||
BRDA:87,8,0,12 | ||
BRDA:87,8,1,6 | ||
BRDA:104,9,0,2 | ||
BRDA:104,9,1,10 | ||
BRDA:104,10,0,12 | ||
BRDA:104,10,1,6 | ||
BRF:22 | ||
BRH:20 | ||
end_of_record | ||
TN: | ||
SF:src/declare-cr-transclude-module.js | ||
FN:5,declareCrTranscludeModule | ||
FN:7,declareCrTranscludeModule | ||
FNF:1 | ||
FNH:1 | ||
FNDA:1,declareCrTranscludeModule | ||
DA:6,1 | ||
DA:8,1 | ||
DA:10,1 | ||
LF:3 | ||
LH:3 | ||
FNDA:3,declareCrTranscludeModule | ||
DA:5,2 | ||
DA:8,3 | ||
DA:10,3 | ||
DA:12,3 | ||
LF:4 | ||
LH:4 | ||
BRF:0 | ||
BRH:0 | ||
end_of_record |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
/* eslint import/prefer-default-export: 0 */ | ||
|
||
import { crTranscludeDirective } from './cr-transclude.directive'; | ||
import { crTranscludeDirectiveFactory } from './cr-transclude.directive'; | ||
|
||
export const crTranscludeModuleName = 'crTransclude'; | ||
|
||
export function declareCrTranscludeModule(angular) { | ||
const CrTranscludeModule = angular.module('crTransclude', []); | ||
const CrTranscludeModule = angular.module(crTranscludeModuleName, []); | ||
|
||
CrTranscludeModule.directive('crTransclude', crTranscludeDirective); | ||
CrTranscludeModule.directive('crTransclude', crTranscludeDirectiveFactory(angular)); | ||
|
||
return CrTranscludeModule; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
import { crTranscludeDirective } from './cr-transclude.directive'; | ||
import { declareCrTranscludeModule } from './declare-cr-transclude-module'; | ||
import { crTranscludeDirectiveFactory } from './cr-transclude.directive'; | ||
import { crTranscludeModuleName, declareCrTranscludeModule } from './declare-cr-transclude-module'; | ||
|
||
export { | ||
crTranscludeDirective, | ||
crTranscludeDirectiveFactory, | ||
crTranscludeModuleName, | ||
declareCrTranscludeModule, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* global angular */ | ||
|
||
import assert from 'assert'; | ||
import { declareCrTranscludeModule, crTranscludeModuleName } from '../src/declare-cr-transclude-module'; | ||
|
||
describe('declareCrTranscludeModule', () => { | ||
it('should declare the module', () => { | ||
declareCrTranscludeModule(angular); | ||
}); | ||
|
||
it('should have the module with the same name as the exported name', () => { | ||
const crTranscludeModule = declareCrTranscludeModule(angular); | ||
assert.equal(crTranscludeModule.name, crTranscludeModuleName); | ||
}); | ||
}); |