A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/bootstrap-vue/bootstrap-vue/commit/2eab55b4672a35a487b30f0f64c63b887b361473 below:

focus-in handling for Safari and Firefox on macOS/iO… · bootstrap-vue/bootstrap-vue@2eab55b · GitHub

@@ -19,9 +19,7 @@ describe('navbar', () => {

19 19 20 20

it('accepts custom tag', async () => {

21 21

const wrapper = mount(BNavbar, {

22 -

context: {

23 -

props: { tag: 'div' }

24 -

}

22 +

propsData: { tag: 'div' }

25 23

})

26 24

expect(wrapper.is('div')).toBe(true)

27 25

expect(wrapper.attributes('role')).toBeDefined()

@@ -30,9 +28,7 @@ describe('navbar', () => {

30 28 31 29

it('accepts breakpoint via toggleable prop', async () => {

32 30

const wrapper = mount(BNavbar, {

33 -

context: {

34 -

props: { toggleable: 'lg' }

35 -

}

31 +

propsData: { toggleable: 'lg' }

36 32

})

37 33

expect(wrapper.classes()).toContain('navbar')

38 34

expect(wrapper.classes()).toContain('navbar-expand-lg')

@@ -42,9 +38,7 @@ describe('navbar', () => {

42 38 43 39

it('toggleable=true has expected classes', async () => {

44 40

const wrapper = mount(BNavbar, {

45 -

context: {

46 -

props: { toggleable: true }

47 -

}

41 +

propsData: { toggleable: true }

48 42

})

49 43

expect(wrapper.classes()).toContain('navbar')

50 44

expect(wrapper.classes()).toContain('navbar-light')

@@ -53,9 +47,7 @@ describe('navbar', () => {

53 47 54 48

it('toggleable=xs has expected classes', async () => {

55 49

const wrapper = mount(BNavbar, {

56 -

context: {

57 -

props: { toggleable: 'xs' }

58 -

}

50 +

propsData: { toggleable: 'xs' }

59 51

})

60 52

expect(wrapper.classes()).toContain('navbar')

61 53

expect(wrapper.classes()).toContain('navbar-light')

@@ -64,9 +56,7 @@ describe('navbar', () => {

64 56 65 57

it('has class "fixed-top" when fixed="top"', async () => {

66 58

const wrapper = mount(BNavbar, {

67 -

context: {

68 -

props: { fixed: 'top' }

69 -

}

59 +

propsData: { fixed: 'top' }

70 60

})

71 61

expect(wrapper.classes()).toContain('fixed-top')

72 62

expect(wrapper.classes()).toContain('navbar')

@@ -77,9 +67,7 @@ describe('navbar', () => {

77 67 78 68

it('has class "fixed-top" when fixed="top"', async () => {

79 69

const wrapper = mount(BNavbar, {

80 -

context: {

81 -

props: { fixed: 'top' }

82 -

}

70 +

propsData: { fixed: 'top' }

83 71

})

84 72

expect(wrapper.classes()).toContain('fixed-top')

85 73

expect(wrapper.classes()).toContain('navbar')

@@ -90,9 +78,7 @@ describe('navbar', () => {

90 78 91 79

it('has class "sticky-top" when sticky=true', async () => {

92 80

const wrapper = mount(BNavbar, {

93 -

context: {

94 -

props: { sticky: true }

95 -

}

81 +

propsData: { sticky: true }

96 82

})

97 83

expect(wrapper.classes()).toContain('sticky-top')

98 84

expect(wrapper.classes()).toContain('navbar')

@@ -103,9 +89,7 @@ describe('navbar', () => {

103 89 104 90

it('accepts variant prop', async () => {

105 91

const wrapper = mount(BNavbar, {

106 -

context: {

107 -

props: { variant: 'primary' }

108 -

}

92 +

propsData: { variant: 'primary' }

109 93

})

110 94

expect(wrapper.classes()).toContain('bg-primary')

111 95

expect(wrapper.classes()).toContain('navbar')


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4