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
import React from 'react'; | |
class RenderCount extends React.Component { | |
count = 0; | |
render() { | |
this.count++; | |
return this.count; | |
} | |
} |
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
Feature: 2-factor authentication | |
Background: | |
Given I'm logged in | |
Scenario: Enable 2FA | |
Given 2FA is disabled | |
When I navigate to "settings/security" | |
And I click to enable 2FA | |
And I enter code for enabling 2FA | |
Given code for enabling 2FA is correct |
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
namespace System | |
{ | |
public static class StringExtensions | |
{ | |
/// <summary> | |
/// Reports the index of the N-th occurence of a specified string within the current System.String object. | |
/// </summary> | |
/// <param name="source">Source string.</param> | |
/// <param name="value">The string to seek.</param> | |
/// <param name="n"> |
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
using System.IO; | |
namespace System.Globalization | |
{ | |
public static class CultureInfoExtensions | |
{ | |
/// <summary> | |
/// Gets the ISO 639-2 three-letter code for the language of the current System.Globalization.CultureInfo object. | |
/// </summary> | |
/// <param name="cultureInfo"></param> |